Library
Module
Module type
Parameter
Class
Class type
Xen Netfront interface for Ethernet I/O.
include V1.NETWORK
with type 'a io = 'a Lwt.t
and type page_aligned_buffer = Io_page.t
and type buffer = Cstruct.t
and type id = string
and type macaddr = Macaddr.t
type page_aligned_buffer = Io_page.t
The type for page-aligned memory buffers.
type buffer = Cstruct.t
The type for memory buffers.
type error = [
| `Unknown of string
an undiagnosed error
*)| `Unimplemented
operation not yet implemented in the code
*)| `Disconnected
the device has been previously disconnected
*) ]
The type for IO operation errors
type macaddr = Macaddr.t
The type for unique MAC identifiers for the device.
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. It returns as soon as it has initialised, and the function can be stopped by calling disconnect
in the device layer.
val reset_stats_counters : t -> unit
Reset the statistics associated with this device to their defaults.