Query: ipsec_anyaddr
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
IPSEC_ANYADDR(3) Library Functions Manual IPSEC_ANYADDR(3)NAMEipsec_anyaddr, ipsec_isanyaddr, ipsec_unspecaddr, ipsec_isunspecaddr, ipsec_loopbackaddr, ipsec_isloopbackaddr - get and test for addresses of type "any", "unspecified" and loopback get "any" addressSYNOPSIS#include <freeswan.h> const char *anyaddr(int af, ip_address *dst); int isanyaddr(const ip_address *src); const char *unspecaddr(int af, ip_address *dst); int isunspecaddr(const ip_address *src); const char *loopbackaddr(int af, ip_address *dst); int isloopbackaddr(const ip_address *src);DESCRIPTIONThese functions fill in, and test for, special values of the ip_address type. Anyaddr fills in the destination *dst with the ``any'' address of address family af (normally AF_INET or AF_INET6). The IPv4 ``any'' address is the one embodied in the old INADDR_ANY macro. Isanyaddr returns 1 if the src address equals the ``any'' address, and 0 otherwise. Similarly, unspecaddr supplies, and isunspecaddr tests for, the ``unspecified'' address, which may be the same as the ``any'' address. Similarly, loopbackaddr supplies, and islookbackaddr tests for, the loopback address. Anyaddr, unspecaddr, and loopbackaddr return NULL for success and a pointer to a string-literal error message for failure; see DIAGNOSTICS.SEE ALSOinet(3), ipsec_addrtot(3), ipsec_sameaddr(3)DIAGNOSTICSFatal errors in the address-supplying functions are: unknown address family.HISTORYWritten for the FreeS/WAN project by Henry Spencer. 8 Sept 2000 IPSEC_ANYADDR(3)
Related Man Pages |
---|
ipsec_addrbytesof(3) - debian |
ipsec_isloopbackaddr(3) - debian |
ipsec_isunspecaddr(3) - debian |
ipsec_unspecaddr(3) - debian |
ipsec_unspecaddr(3) - centos |
Similar Topics in the Unix Linux Community |
---|
How can I do this in VI editor? |
Is UNIX an open source OS ? |
Introduction |
Find columns in a file based on header and print to new file |
A (ksh) Library For and From UNIX.com |