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

« back to all changes in this revision

Viewing changes to debian/openswan-modules-source-build/modules/openswan/linux/lib/libfreeswan/subnetof.3

  • 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
 
.TH IPSEC_SUBNETOF 3 "11 June 2001"
2
 
.\" RCSID $Id: subnetof.3,v 1.6 2002/04/24 07:36:43 mcr Exp $
3
 
.SH NAME
4
 
ipsec subnetof \- given Internet address and subnet mask, return subnet number
5
 
.br
6
 
ipsec hostof \- given Internet address and subnet mask, return host part
7
 
.br
8
 
ipsec broadcastof \- given Internet address and subnet mask, return broadcast address
9
 
.SH SYNOPSIS
10
 
.B "#include <freeswan.h>
11
 
.sp
12
 
.B "struct in_addr subnetof(struct in_addr addr,"
13
 
.ti +1c
14
 
.B "struct in_addr mask);"
15
 
.br
16
 
.B "struct in_addr hostof(struct in_addr addr,"
17
 
.ti +1c
18
 
.B "struct in_addr mask);"
19
 
.br
20
 
.B "struct in_addr broadcastof(struct in_addr addr,"
21
 
.ti +1c
22
 
.B "struct in_addr mask);"
23
 
.SH DESCRIPTION
24
 
These functions are obsolete; see
25
 
.IR ipsec_networkof (3)
26
 
for their replacements.
27
 
.PP
28
 
.I Subnetof
29
 
takes an Internet
30
 
.I address
31
 
and a subnet
32
 
.I mask
33
 
and returns the network part of the address
34
 
(all in network byte order).
35
 
.I Hostof
36
 
similarly returns the host part, and
37
 
.I broadcastof
38
 
returns the broadcast address (all-1s convention) for the network.
39
 
.PP
40
 
These functions are provided to hide the Internet bit-munging inside
41
 
an API, in hopes of easing the eventual transition to IPv6.
42
 
.SH SEE ALSO
43
 
inet(3), ipsec_atosubnet(3)
44
 
.SH HISTORY
45
 
Written for the FreeS/WAN project by Henry Spencer.
46
 
.SH BUGS
47
 
Calling functions for this is more costly than doing it yourself.