Module Mirage_net

Network devices

Mirage_net defines the signature for MirageOS network devices.

Release %%VERSION%%

module Net : sig ... end
type stats = {
  1. mutable rx_bytes : int64;
  2. mutable rx_pkts : int32;
  3. mutable tx_bytes : int64;
  4. mutable tx_pkts : int32;
}

The type for frame statistics to track the usage of the device.

Networking

module type S = sig ... end

A network interface that serves Ethernet frames.

module Stats : sig ... end