Skip to content
JoungKyun Kim edited this page Jul 9, 2016 · 8 revisions

libipcalc APIs And Utilities

1. APIs

  • broadcast.3 - returns broadcast address with IP and network mask
  • guess_netmask.3 - returns minimum subnet mask that include range of ip address
  • ip2long.3 - convert IPv4 ip address to 32bit positive integer
  • is_ipv4.3 - validate IPv4 address or domain name
  • long2ip.3 - convert Long IP(32bit positive integer) to IPv4 dotted ip address
  • long2prefix.3 - Converts 32bit positive integer netmask to decimical prefix
  • network.3 - retuns network address for ip address and network mask
  • prefix2long.3 - Converts network prefix to 32bit positive ingeter
  • valid_ip_address.3 - dprecated. see also is_ipv4.3 api

2. Utilities