package tcpip

  1. Overview
  2. Docs

Parameters

module N : Mirage_net_lwt.S

Signature

include Mirage_protocols_lwt.ETHIF with type netif = N.t
type error = private [>
  1. | Mirage_protocols.Ethif.error
]
val pp_error : error Fmt.t
type buffer = Cstruct.t
type netif = N.t
type macaddr = Macaddr.t
type 'a io = 'a Lwt.t
type t
val disconnect : t -> unit io
val write : t -> buffer -> (unit, error) Stdlib.result io
val writev : t -> buffer list -> (unit, error) Stdlib.result io
val mac : t -> macaddr
val mtu : t -> int
val input : arpv4:(buffer -> unit io) -> ipv4:(buffer -> unit io) -> ipv6:(buffer -> unit io) -> t -> buffer -> unit io
val connect : ?mtu:int -> netif -> t Lwt.t

connect ?mtu netif connects an ethernet layer on top of the raw network device netif. The Maximum Transfer Unit may be set via the optional ?mtu parameter, otherwise a default value of 1500 will be used.

OCaml

Innovation. Community. Security.