module Cf_netif:Network interface name/index mapping.sig..end
Wrapper around the standard network interface name/index mapping functions defined in
<net/if.h>.val nametoindex : string -> intnametoindex name to get the index for the interface name. Raises
Not_found if the interface does not currently exist.val indextoname : int -> stringindextoname index to get the index for the interface name. Raises
Not_found if the interface does not currently exist.val nameindex : unit -> (int * string) listnameindex () to obtain the current list of network interfaces, by
index and name.