package tuntap

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val opentun : ?pi:bool -> ?persist:bool -> ?user:int -> ?group:int -> ?devname:string -> unit -> Unix.file_descr * string
val opentap : ?pi:bool -> ?persist:bool -> ?user:int -> ?group:int -> ?devname:string -> unit -> Unix.file_descr * string
val closetun : string -> unit
val closetap : string -> unit
val get_ifnamsiz : unit -> int
val get_hwaddr : string -> string
val set_ipv4 : devname:string -> ipv4:string -> ?netmask:string -> unit -> unit
val set_up_and_running : string -> unit
val string_of_hwaddr : string -> string
val make_local_hwaddr : unit -> string
type iface_addr = {
  1. addr : Cstruct.ipv4;
  2. mask : Cstruct.ipv4;
  3. brd : Cstruct.ipv4;
}
val getifaddrs : unit -> (string * iface_addr) list
OCaml

Innovation. Community. Security.