1IPSEC_ANYADDR(3)           Library Functions Manual           IPSEC_ANYADDR(3)
2
3
4

NAME

6       ipsec anyaddr - get "any" address
7       ipsec isanyaddr - test address for equality to "any" address
8       ipsec unspecaddr - get "unspecified" address
9       ipsec isunspecaddr - test address for equality to "unspecified" address
10       ipsec loopbackaddr - get loopback address
11       ipsec isloopbackaddr - test address for equality to loopback address
12

SYNOPSIS

14       #include <freeswan.h>
15
16       const char *anyaddr(int af, ip_address *dst);
17       int isanyaddr(const ip_address *src);
18       const char *unspecaddr(int af, ip_address *dst);
19       int isunspecaddr(const ip_address *src);
20       const char *loopbackaddr(int af, ip_address *dst);
21       int isloopbackaddr(const ip_address *src);
22

DESCRIPTION

24       These functions fill in, and test for, special values of the ip_address
25       type.
26
27       Anyaddr fills in the destination  *dst  with  the  ``any''  address  of
28       address  family  af  (normally  AF_INET or AF_INET6).  The IPv4 ``any''
29       address is the one embodied in the old INADDR_ANY macro.
30
31       Isanyaddr returns 1 if the src address equals the ``any'' address,  and
32       0 otherwise.
33
34       Similarly,   unspecaddr  supplies,  and  isunspecaddr  tests  for,  the
35       ``unspecified'' address, which may be the same as the ``any'' address.
36
37       Similarly, loopbackaddr supplies, and  islookbackaddr  tests  for,  the
38       loopback address.
39
40       Anyaddr,  unspecaddr,  and  loopbackaddr  return NULL for success and a
41       pointer to a string-literal error message for failure; see DIAGNOSTICS.
42

SEE ALSO

44       inet(3), ipsec_addrtot(3), ipsec_sameaddr(3)
45

DIAGNOSTICS

47       Fatal errors in the address-supplying functions  are:  unknown  address
48       family.
49

HISTORY

51       Written for the FreeS/WAN project by Henry Spencer.
52
53
54
55                                  8 Sept 2000                 IPSEC_ANYADDR(3)
Impressum