1
.TH IPSEC_ANYADDR 3 "28 Nov 2000"
2
.\" RCSID $Id: sameaddr.3,v 1.6 2002/04/24 07:36:43 mcr Exp $
4
ipsec sameaddr \- are two addresses the same?
6
ipsec addrcmp \- ordered comparison of addresses
8
ipsec samesubnet \- are two subnets the same?
10
ipsec addrinsubnet \- is an address within a subnet?
12
ipsec subnetinsubnet \- is a subnet within another subnet?
14
ipsec subnetishost \- is a subnet a single host?
16
ipsec samesaid \- are two SA IDs the same?
18
ipsec sameaddrtype \- are two addresses of the same address family?
20
ipsec samesubnettype \- are two subnets of the same address family?
22
.B "#include <freeswan.h>
24
.B "int sameaddr(const ip_address *a, const ip_address *b);"
26
.B "int addrcmp(const ip_address *a, const ip_address *b);"
28
.B "int samesubnet(const ip_subnet *a, const ip_subnet *b);"
30
.B "int addrinsubnet(const ip_address *a, const ip_subnet *s);"
32
.B "int subnetinsubnet(const ip_subnet *a, const ip_subnet *b);"
34
.B "int subnetishost(const ip_subnet *s);"
36
.B "int samesaid(const ip_said *a, const ip_said *b);"
38
.B "int sameaddrtype(const ip_address *a, const ip_address *b);"
40
.B "int samesubnettype(const ip_subnet *a, const ip_subnet *b);"
42
These functions do various comparisons and tests on the
59
Addresses of different families are never identical.
70
is less than, equal to, or greater than
72
If they are not of the same address family,
74
the ordering reported in this case is arbitrary
75
(and probably not useful) but consistent.
88
Subnets of different address families are never identical.
100
An address is never within a
101
subnet of a different address family.
108
is a subset of subnet
113
A subnet is deemed to be a subset of itself.
114
A subnet is never a subset of another
115
subnet if their address families differ.
122
is in fact only a single host,
146
are of the same address family,
158
are of the same address family,
163
inet(3), ipsec_initaddr(3)
165
Written for the FreeS/WAN project by Henry Spencer.