1 Content-type: text/html
3 <HTML><HEAD><TITLE>Manpage of IPSEC_GOODMASK
</TITLE>
5 <H1>IPSEC_GOODMASK
</H1>
6 Section: C Library Functions (
3)
<BR>Updated:
11 June
2001<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 goodmask - is this Internet subnet mask a valid one?
16 ipsec masktobits - convert Internet subnet mask to bit count
19 ipsec bitstomask - convert bit count to Internet subnet mask
20 <A NAME=
"lbAC"> </A>
23 <B>#include
<<A HREF=
"file:/usr/include/freeswan.h">freeswan.h
</A>></B>
26 <B>int goodmask(struct in_addr mask);
</B>
30 <B>int masktobits(struct in_addr mask);
</B>
34 <B>struct in_addr bitstomask(int n);
</B>
36 <A NAME=
"lbAD"> </A>
39 These functions are obsolete;
41 <I><A HREF=
"ipsec_masktocount.3.html">ipsec_masktocount
</A></I>(
3)
43 for a partial replacement.
48 reports whether the subnet
52 i.e. consists of a (possibly empty) sequence of
55 followed by a (possibly empty) sequence of
60 takes a (valid) subnet mask and returns the number of
67 returning the subnet mask corresponding to bit count
72 All masks are in network byte order.
73 <A NAME=
"lbAE"> </A>
76 <A HREF=
"inet.3.html">inet
</A>(
3),
<A HREF=
"ipsec_atosubnet.3.html">ipsec_atosubnet
</A>(
3)
77 <A NAME=
"lbAF"> </A>
88 returns an all-zeros mask for a negative or out-of-range
91 <A NAME=
"lbAG"> </A>
94 Written for the FreeS/WAN project by Henry Spencer.
95 <A NAME=
"lbAH"> </A>
98 The error-reporting convention of
102 zero is sometimes a legitimate mask.
106 <A NAME=
"index"> </A><H2>Index
</H2>
108 <DT><A HREF=
"#lbAB">NAME
</A><DD>
109 <DT><A HREF=
"#lbAC">SYNOPSIS
</A><DD>
110 <DT><A HREF=
"#lbAD">DESCRIPTION
</A><DD>
111 <DT><A HREF=
"#lbAE">SEE ALSO
</A><DD>
112 <DT><A HREF=
"#lbAF">DIAGNOSTICS
</A><DD>
113 <DT><A HREF=
"#lbAG">HISTORY
</A><DD>
114 <DT><A HREF=
"#lbAH">BUGS
</A><DD>
117 This document was created by
118 <A HREF=
"http://localhost/cgi-bin/man/man2html">man2html
</A>,
119 using the manual pages.
<BR>
120 Time:
21:
40:
17 GMT, November
11,
2003