package mirage-net-unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Implementation of the network interface for Unix backends.

include Mirage_net_lwt.S
type error = private [>
  1. | Mirage_net.Net.error
]
val pp_error : error Fmt.t
type buffer = Cstruct.t
type macaddr = Macaddr.t
type 'a io = 'a Lwt.t
type t
val disconnect : t -> unit io
val write : t -> size:int -> (buffer -> int) -> (unit, error) Stdlib.result io
val listen : t -> header_size:int -> (buffer -> unit io) -> (unit, error) Stdlib.result io
val mac : t -> macaddr
val mtu : t -> int
val get_stats_counters : t -> Mirage_net.stats
val reset_stats_counters : t -> unit
val connect : string -> t Lwt.t

connect tap connects to the given tap interface.

fd t is t's underneath file descriptor.

OCaml

Innovation. Community. Security.