package tcpip

  1. Overview
  2. Docs
type t
val create : get_etherbuf:(unit -> Cstruct.t Lwt.t) -> output:(Cstruct.t -> unit Lwt.t) -> get_mac:(unit -> Macaddr.t) -> t
val set_ips : t -> Ipaddr.V4.t list -> unit Lwt.t
val get_ips : t -> Ipaddr.V4.t list
val add_ip : t -> Ipaddr.V4.t -> unit Lwt.t
val remove_ip : t -> Ipaddr.V4.t -> unit Lwt.t
val input : t -> Cstruct.t -> unit Lwt.t
val query : t -> Ipaddr.V4.t -> Macaddr.t Lwt.t
OCaml

Innovation. Community. Security.