1
Content-type: text/html
3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<HTML><HEAD><TITLE>Man page of IPSEC_ANYADDR</TITLE>
7
Section: C Library Functions (3)<BR>Updated: 28 Nov 2000<BR><A HREF="#index">Index</A>
8
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
11
<A NAME="lbAB"> </A>
14
ipsec sameaddr - are two addresses the same?
17
ipsec addrcmp - ordered comparison of addresses
20
ipsec samesubnet - are two subnets the same?
23
ipsec addrinsubnet - is an address within a subnet?
26
ipsec subnetinsubnet - is a subnet within another subnet?
29
ipsec subnetishost - is a subnet a single host?
32
ipsec samesaid - are two SA IDs the same?
35
ipsec sameaddrtype - are two addresses of the same address family?
38
ipsec samesubnettype - are two subnets of the same address family?
39
<A NAME="lbAC"> </A>
42
<B>#include <<A HREF="file:///usr/include/freeswan.h">freeswan.h</A>></B>
45
<B>int sameaddr(const ip_address *a, const ip_address *b);</B>
49
<B>int addrcmp(const ip_address *a, const ip_address *b);</B>
53
<B>int samesubnet(const ip_subnet *a, const ip_subnet *b);</B>
57
<B>int addrinsubnet(const ip_address *a, const ip_subnet *s);</B>
61
<B>int subnetinsubnet(const ip_subnet *a, const ip_subnet *b);</B>
65
<B>int subnetishost(const ip_subnet *s);</B>
69
<B>int samesaid(const ip_said *a, const ip_said *b);</B>
73
<B>int sameaddrtype(const ip_address *a, const ip_address *b);</B>
77
<B>int samesubnettype(const ip_subnet *a, const ip_subnet *b);</B>
79
<A NAME="lbAD"> </A>
82
These functions do various comparisons and tests on the
106
Addresses of different families are never identical.
123
is less than, equal to, or greater than
126
If they are not of the same address family,
127
they are never equal;
128
the ordering reported in this case is arbitrary
129
(and probably not useful) but consistent.
147
Subnets of different address families are never identical.
164
An address is never within a
165
subnet of a different address family.
168
<I>Subnetinsubnet</I>
175
is a subset of subnet
182
A subnet is deemed to be a subset of itself.
183
A subnet is never a subset of another
184
subnet if their address families differ.
194
is in fact only a single host,
228
are of the same address family,
235
<I>Samesubnettype</I>
245
are of the same address family,
250
<A NAME="lbAE"> </A>
253
<A HREF="/cgi-bin/man/man2html?3+inet">inet</A>(3), <A HREF="/cgi-bin/man/man2html?3+ipsec_initaddr">ipsec_initaddr</A>(3)
254
<A NAME="lbAF"> </A>
257
Written for the FreeS/WAN project by Henry Spencer.
261
<A NAME="index"> </A><H2>Index</H2>
263
<DT><A HREF="#lbAB">NAME</A><DD>
264
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
265
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
266
<DT><A HREF="#lbAE">SEE ALSO</A><DD>
267
<DT><A HREF="#lbAF">HISTORY</A><DD>
270
This document was created by
271
<A HREF="/cgi-bin/man/man2html">man2html</A>,
272
using the manual pages.<BR>
273
Time: 10:29:43 GMT, June 17, 2004