Query: ipsec_subnetof
OS: centos
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IPSEC_SUBNETOF(3) Library Functions Manual IPSEC_SUBNETOF(3)NAMEipsec_subnetof, ipsec_hostof, ipsec_broadcastof - given Internet address and subnet mask return subnet number, host part, broadcast addressSYNOPSIS#include <libreswan.h> struct in_addr subnetof(struct in_addr addr, struct in_addr mask); struct in_addr hostof(struct in_addr addr, struct in_addr mask); struct in_addr broadcastof(struct in_addr addr, struct in_addr mask);DESCRIPTIONThese functions are obsolete; see ipsec_networkof(3) for their replacements. Subnetof takes an Internet address and a subnet mask and returns the network part of the address (all in network byte order). Hostof simi- larly returns the host part, and broadcastof 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.SEE ALSOinet(3), ipsec_atosubnet(3)HISTORYWritten for the FreeS/WAN project by Henry Spencer.BUGSCalling functions for this is more costly than doing it yourself. 11 June 2001 IPSEC_SUBNETOF(3)
Related Man Pages |
---|
ipsec_bitstomask(3) - debian |
ipsec_broadcastof(3) - debian |
ipsec_hostof(3) - debian |
ipsec_goodmask(3) - debian |
ipsec_goodmask(3) - centos |
Similar Topics in the Unix Linux Community |
---|
broadcast address |
system won't start to GUI it stuck |
changing the subnet mask permanently |
Script to adjust network settings |
Changing the subnet mask on solaris 10 |