package mirage-net-direct

  1. Overview
  2. Docs
type offer = {
  1. ip_addr : Nettypes.ipv4_addr;
  2. netmask : Nettypes.ipv4_addr option;
  3. gateways : Nettypes.ipv4_addr list;
  4. dns : Nettypes.ipv4_addr list;
  5. lease : int32;
  6. xid : int32;
}
type state =
  1. | Disabled
  2. | Request_sent of int32
  3. | Offer_accepted of offer
  4. | Lease_held of offer
  5. | Shutting_down
type t
val input : t -> src:Nettypes.ipv4_addr -> dst:Nettypes.ipv4_addr -> source_port:int -> Cstruct.t -> unit Lwt.t
val create : Ipv4.t -> Udp.t -> (t * unit Lwt.t) Lwt.t
OCaml

Innovation. Community. Security.