summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/inet_net.3
diff options
context:
space:
mode:
authorjaredy <>2005-07-22 04:50:51 +0000
committerjaredy <>2005-07-22 04:50:51 +0000
commit3553ae132550867ea92f1c819130713a94c9aa57 (patch)
tree0fcccaffb7fe67c8d9c1f46e9831c994ceadc81a /src/lib/libc/net/inet_net.3
parentfca3e187a867f51bfd0b46cc4d3f49175ffddef6 (diff)
downloadopenbsd-3553ae132550867ea92f1c819130713a94c9aa57.tar.gz
openbsd-3553ae132550867ea92f1c819130713a94c9aa57.tar.bz2
openbsd-3553ae132550867ea92f1c819130713a94c9aa57.zip
- sync prototypes and header file excerpts
- typos/spelling, punctuation, rewording, macro, and layout fixes. help & ok jmc
Diffstat (limited to 'src/lib/libc/net/inet_net.3')
-rw-r--r--src/lib/libc/net/inet_net.323
1 files changed, 12 insertions, 11 deletions
diff --git a/src/lib/libc/net/inet_net.3 b/src/lib/libc/net/inet_net.3
index c14fa52e38..569ddfc5c6 100644
--- a/src/lib/libc/net/inet_net.3
+++ b/src/lib/libc/net/inet_net.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet_net.3,v 1.10 2003/05/01 19:17:37 jmc Exp $ 1.\" $OpenBSD: inet_net.3,v 1.11 2005/07/22 04:50:51 jaredy Exp $
2.\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $ 2.\" $NetBSD: inet_net.3,v 1.1 1997/06/18 02:25:27 lukem Exp $
3.\" 3.\"
4.\" Copyright (c) 1997 The NetBSD Foundation, Inc. 4.\" Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -120,35 +120,36 @@ is not specified the number of bits in the network address is calculated
120as the larger of the number of bits in the class to which the address 120as the larger of the number of bits in the class to which the address
121belongs and the number of bits provided rounded up modulo 8. 121belongs and the number of bits provided rounded up modulo 8.
122Examples: 122Examples:
123.Bl -tag -width 10.1.2.3/24 123.Pp
124.Bl -tag -width 10.1.2.3/24 -offset indent -compact
124.It Li 10 125.It Li 10
125an 8 bit network number (class A), value 126an 8-bit network number (class A), value
126.Li 10.0.0.0 . 127.Li 10.0.0.0 .
127.It Li 192 128.It Li 192
128a 24 bit network number (class C), value 129a 24-bit network number (class C), value
129.Li 192.0.0.0 . 130.Li 192.0.0.0 .
130.It Li 10.10 131.It Li 10.10
131a 16 bit network number, value 132a 16-bit network number, value
132.Li 10.10.0.0 . 133.Li 10.10.0.0 .
133.It Li 10.1.2 134.It Li 10.1.2
134a 24 bit network number, value 135a 24-bit network number, value
135.Li 10.1.2.0 . 136.Li 10.1.2.0 .
136.It Li 10.1.2.3 137.It Li 10.1.2.3
137a 32 bit network number, value 138a 32-bit network number, value
138.Li 10.1.2.3 . 139.Li 10.1.2.3 .
139.It Li 10.1.2.3/24 140.It Li 10.1.2.3/24
140a 24 bit network number (explicit), value 141a 24-bit network number (explicit), value
141.Li 10.1.2.3 . 142.Li 10.1.2.3 .
142.El 143.El
143.Pp 144.Pp
144Note that when the number of bits is specified using 145Note that when the number of bits is specified using
145.Dq Li /bits 146.Dq Li /bits
146notation, the value of the address still includes all bits suplied 147notation, the value of the address still includes all bits supplied
147in the external representation, even those bits which are the host 148in the external representation, even those bits which are the host
148part of an internet address. 149part of an Internet address.
149Also, unlike 150Also, unlike
150.Xr inet_pton 3 151.Xr inet_pton 3
151where the external representation is assumed to be an internet address, the 152where the external representation is assumed to be a host address, the
152external representation for 153external representation for
153.Fn inet_net_pton 154.Fn inet_net_pton
154is assumed to be a network address. 155is assumed to be a network address.