package mirage-net-direct

  1. Overview
  2. Docs
type t
val create : get_etherbuf:(unit -> Cstruct.t Lwt.t) -> output:(Cstruct.t -> unit Lwt.t) -> get_mac:(unit -> Nettypes.ethernet_mac) -> t
val set_ips : t -> Nettypes.ipv4_addr list -> unit Lwt.t
val get_ips : t -> Nettypes.ipv4_addr list
val add_ip : t -> Nettypes.ipv4_addr -> unit Lwt.t
val remove_ip : t -> Nettypes.ipv4_addr -> unit Lwt.t
val input : t -> Cstruct.t -> unit Lwt.t
OCaml

Innovation. Community. Security.