Module Ip


module Ip: sig  end
Calculations on ip addresses

val valid_ip : string -> bool
Check if this ip_address is valid (including the given netmask)
val ip_in_net : string -> string -> bool
Check if this ip_address is part of the network
val is_subnet : string -> string -> bool
Check if this sub_net is subnet of the network
val is_host : string -> bool
Is this ip_address valid and is the netmask a single address
val get_hostpart : string -> string
Get the ip_address from ip_address without netmaskpart
val get_network : string -> string
Get the network from ip_address without netmaskpart
val get_netmask : string -> string
Get the netmask from an ip_address without networkpart
val get_broadcast : string -> string
Get the broadcast address from an ip_address
val long_mask : string -> string
Results in long notation netmask
val short_mask : string -> string
Results in short notation netmask