and error = private [>
The type for ethernet interface errors.
type buffer = Cstruct.t
The type for memory buffers.
type macaddr = Macaddr.t
The type for unique MAC identifiers.
include Mirage_device.S with type 'a io = 'a Lwt.t
type 'a io = 'a Lwt.t
The type for potentially blocking I/O operation
writev nf bufs output a list of buffers to netfront
nf as a single packet.
val mtu : t -> int
mtu nf is the Maximum Transmission Unit of the
nf i.e. the maximum size of the payload, not including the ethernet frame header.
val input : arpv4:( buffer -> unit io ) -> ipv4:( buffer -> unit io ) -> ipv6:( buffer -> unit io ) -> t -> buffer -> unit io
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.