1 Content-type: text/html
3 <HTML><HEAD><TITLE>Manpage of IPSEC_ANYADDR</TITLE>
6 Section: C Library Functions (3)<BR>Updated: 28 Nov 2000<BR><A HREF="#index">Index</A>
7 <A HREF="http://localhost/cgi-bin/man/man2html">Return to Main Contents</A><HR>
10 <A NAME="lbAB"> </A>
13 ipsec sameaddr - are two addresses the same?
16 ipsec addrcmp - ordered comparison of addresses
19 ipsec samesubnet - are two subnets the same?
22 ipsec addrinsubnet - is an address within a subnet?
25 ipsec subnetinsubnet - is a subnet within another subnet?
28 ipsec subnetishost - is a subnet a single host?
31 ipsec samesaid - are two SA IDs the same?
34 ipsec sameaddrtype - are two addresses of the same address family?
37 ipsec samesubnettype - are two subnets of the same address family?
38 <A NAME="lbAC"> </A>
41 <B>#include <<A HREF="file:/usr/include/freeswan.h">freeswan.h</A>></B>
44 <B>int sameaddr(const ip_address *a, const ip_address *b);</B>
48 <B>int addrcmp(const ip_address *a, const ip_address *b);</B>
52 <B>int samesubnet(const ip_subnet *a, const ip_subnet *b);</B>
56 <B>int addrinsubnet(const ip_address *a, const ip_subnet *s);</B>
60 <B>int subnetinsubnet(const ip_subnet *a, const ip_subnet *b);</B>
64 <B>int subnetishost(const ip_subnet *s);</B>
68 <B>int samesaid(const ip_said *a, const ip_said *b);</B>
72 <B>int sameaddrtype(const ip_address *a, const ip_address *b);</B>
76 <B>int samesubnettype(const ip_subnet *a, const ip_subnet *b);</B>
78 <A NAME="lbAD"> </A>
81 These functions do various comparisons and tests on the
105 Addresses of different families are never identical.
122 is less than, equal to, or greater than
125 If they are not of the same address family,
126 they are never equal;
127 the ordering reported in this case is arbitrary
128 (and probably not useful) but consistent.
146 Subnets of different address families are never identical.
163 An address is never within a
164 subnet of a different address family.
167 <I>Subnetinsubnet</I>
174 is a subset of subnet
181 A subnet is deemed to be a subset of itself.
182 A subnet is never a subset of another
183 subnet if their address families differ.
193 is in fact only a single host,
227 are of the same address family,
234 <I>Samesubnettype</I>
244 are of the same address family,
249 <A NAME="lbAE"> </A>
252 <A HREF="inet.3.html">inet</A>(3), <A HREF="ipsec_initaddr.3.html">ipsec_initaddr</A>(3)
253 <A NAME="lbAF"> </A>
256 Written for the FreeS/WAN project by Henry Spencer.
260 <A NAME="index"> </A><H2>Index</H2>
262 <DT><A HREF="#lbAB">NAME</A><DD>
263 <DT><A HREF="#lbAC">SYNOPSIS</A><DD>
264 <DT><A HREF="#lbAD">DESCRIPTION</A><DD>
265 <DT><A HREF="#lbAE">SEE ALSO</A><DD>
266 <DT><A HREF="#lbAF">HISTORY</A><DD>
269 This document was created by
270 <A HREF="http://localhost/cgi-bin/man/man2html">man2html</A>,
271 using the manual pages.<BR>
272 Time: 05:09:30 GMT, June 19, 2001