Library
Module
Module type
Parameter
Class
Class type
module F : Mirage_flow_lwt.S
include Mirage_net_lwt.S
val pp_error : error Fmt.t
pp_error
is the pretty-printer for errors.
writev nf bufs
output a list of buffers to netfront nf
as a single packet.
listen nf fn
is a blocking operation that calls fn buf
with every packet that is read from the interface. The function can be stopped by calling disconnect
in the device layer.
val get_stats_counters : t -> Mirage_net.stats
Obtain the most recent snapshot of the device statistics.
val reset_stats_counters : t -> unit
Reset the statistics associated with this device to their defaults.
val connect : ?mac:Macaddr.t -> F.flow -> t Lwt.t
connect ?mac f
connects to the given flow. If mac
is not specified, generate a random one.