Section: C Library Functions (3)Updated: 11 June 2001Local indexUp
ipsec_subnetof - given Internet address and subnet mask, return subnet number
ipsec hostof - given Internet address and subnet mask, return host part
ipsec broadcastof - given Internet address and subnet mask, return broadcast address
These functions are obsolete; see
for their replacements.
takes an Internet
and a subnet
and returns the network part of the address
(all in network byte order).
similarly returns the host part, and
returns the broadcast address (all-1s convention) for the network.
These functions are provided to hide the Internet bit-munging inside
an API, in hopes of easing the eventual transition to IPv6.