package mirage-net-direct

  1. Overview
  2. Docs
type t
val get_header : proto:[< `ICMP | `TCP | `UDP ] -> dest_ip:Nettypes.ipv4_addr -> t -> (Cstruct.t * int) Lwt.t
val write : t -> Cstruct.t -> Cstruct.t -> unit Lwt.t
val writev : t -> Cstruct.t -> Cstruct.t list -> unit Lwt.t
val set_ip : t -> Nettypes.ipv4_addr -> unit Lwt.t
val get_ip : t -> Nettypes.ipv4_addr
val set_netmask : t -> Nettypes.ipv4_addr -> unit Lwt.t
val set_gateways : t -> Nettypes.ipv4_addr list -> unit Lwt.t
val create : Ethif.t -> t * unit Lwt.t
val attach : t -> [< `ICMP of Nettypes.ipv4_addr -> Cstruct.t -> Cstruct.t -> unit Lwt.t | `TCP of src:Nettypes.ipv4_addr -> dst:Nettypes.ipv4_addr -> Cstruct.t -> unit Lwt.t | `UDP of src:Nettypes.ipv4_addr -> dst:Nettypes.ipv4_addr -> Cstruct.t -> unit Lwt.t ] -> unit
val detach : t -> [< `ICMP | `TCP | `UDP ] -> unit
val get_netmask : t -> Nettypes.ipv4_addr
OCaml

Innovation. Community. Security.