~ubuntu-branches/ubuntu/hardy/openswan/hardy-updates

« back to all changes in this revision

Viewing changes to doc/manpage.d/ipsec_masktobits.3.html

  • Committer: Bazaar Package Importer
  • Author(s): Rene Mayrhofer
  • Date: 2005-01-27 16:10:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050127161011-idgybmyz3vwhpfiq
Tags: 2.3.0-2
Urgency HIGH due to security issue and problems with build-deps in sarge.
* Fix the security issue. Please see
  http://www.idefense.com/application/poi/display?id=190&
      type=vulnerabilities&flashstatus=false
  for more details. Thanks to Martin Schulze for informing me about
  this issue.
  Closes: #292458: Openswan XAUTH/PAM Buffer Overflow Vulnerability
* Added a Build-Dependency to lynx.
  Closes: #291143: openswan: FTBFS: Missing build dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Content-type: text/html
2
 
 
3
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
 
<HTML><HEAD><TITLE>Man page of IPSEC_GOODMASK</TITLE>
5
 
</HEAD><BODY>
6
 
<H1>IPSEC_GOODMASK</H1>
7
 
Section: C Library Functions (3)<BR>Updated: 11 June 2001<BR><A HREF="#index">Index</A>
8
 
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
9
 
 
10
 
 
11
 
<A NAME="lbAB">&nbsp;</A>
12
 
<H2>NAME</H2>
13
 
 
14
 
ipsec goodmask - is this Internet subnet mask a valid one?
15
 
<BR>
16
 
 
17
 
ipsec masktobits - convert Internet subnet mask to bit count
18
 
<BR>
19
 
 
20
 
ipsec bitstomask - convert bit count to Internet subnet mask
21
 
<A NAME="lbAC">&nbsp;</A>
22
 
<H2>SYNOPSIS</H2>
23
 
 
24
 
<B>#include &lt;<A HREF="file:///usr/include/freeswan.h">freeswan.h</A>&gt;</B>
25
 
 
26
 
<P>
27
 
<B>int goodmask(struct in_addr mask);</B>
28
 
 
29
 
<BR>
30
 
 
31
 
<B>int masktobits(struct in_addr mask);</B>
32
 
 
33
 
<BR>
34
 
 
35
 
<B>struct in_addr bitstomask(int n);</B>
36
 
 
37
 
<A NAME="lbAD">&nbsp;</A>
38
 
<H2>DESCRIPTION</H2>
39
 
 
40
 
These functions are obsolete;
41
 
see
42
 
<I><A HREF="/cgi-bin/man/man2html?3+ipsec_masktocount">ipsec_masktocount</A></I>(3)
43
 
 
44
 
for a partial replacement.
45
 
<P>
46
 
 
47
 
<I>Goodmask</I>
48
 
 
49
 
reports whether the subnet
50
 
<I>mask</I>
51
 
 
52
 
is a valid one,
53
 
i.e. consists of a (possibly empty) sequence of
54
 
<B>1</B>s
55
 
 
56
 
followed by a (possibly empty) sequence of
57
 
<B>0</B>s.
58
 
 
59
 
<I>Masktobits</I>
60
 
 
61
 
takes a (valid) subnet mask and returns the number of
62
 
<B>1</B>
63
 
 
64
 
bits in it.
65
 
<I>Bitstomask</I>
66
 
 
67
 
reverses this,
68
 
returning the subnet mask corresponding to bit count
69
 
<I>n</I>.
70
 
 
71
 
<P>
72
 
 
73
 
All masks are in network byte order.
74
 
<A NAME="lbAE">&nbsp;</A>
75
 
<H2>SEE ALSO</H2>
76
 
 
77
 
<A HREF="/cgi-bin/man/man2html?3+inet">inet</A>(3), <A HREF="/cgi-bin/man/man2html?3+ipsec_atosubnet">ipsec_atosubnet</A>(3)
78
 
<A NAME="lbAF">&nbsp;</A>
79
 
<H2>DIAGNOSTICS</H2>
80
 
 
81
 
<I>Masktobits</I>
82
 
 
83
 
returns
84
 
<B>-1</B>
85
 
 
86
 
for an invalid mask.
87
 
<I>Bitstomask</I>
88
 
 
89
 
returns an all-zeros mask for a negative or out-of-range
90
 
<I>n</I>.
91
 
 
92
 
<A NAME="lbAG">&nbsp;</A>
93
 
<H2>HISTORY</H2>
94
 
 
95
 
Written for the FreeS/WAN project by Henry Spencer.
96
 
<A NAME="lbAH">&nbsp;</A>
97
 
<H2>BUGS</H2>
98
 
 
99
 
The error-reporting convention of
100
 
<I>bitstomask</I>
101
 
 
102
 
is less than ideal;
103
 
zero is sometimes a legitimate mask.
104
 
<P>
105
 
 
106
 
<HR>
107
 
<A NAME="index">&nbsp;</A><H2>Index</H2>
108
 
<DL>
109
 
<DT><A HREF="#lbAB">NAME</A><DD>
110
 
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
111
 
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
112
 
<DT><A HREF="#lbAE">SEE ALSO</A><DD>
113
 
<DT><A HREF="#lbAF">DIAGNOSTICS</A><DD>
114
 
<DT><A HREF="#lbAG">HISTORY</A><DD>
115
 
<DT><A HREF="#lbAH">BUGS</A><DD>
116
 
</DL>
117
 
<HR>
118
 
This document was created by
119
 
<A HREF="/cgi-bin/man/man2html">man2html</A>,
120
 
using the manual pages.<BR>
121
 
Time: 10:29:42 GMT, June 17, 2004
122
 
</BODY>
123
 
</HTML>