diff options
author | jaredy <> | 2005-07-22 04:50:51 +0000 |
---|---|---|
committer | jaredy <> | 2005-07-22 04:50:51 +0000 |
commit | 3553ae132550867ea92f1c819130713a94c9aa57 (patch) | |
tree | 0fcccaffb7fe67c8d9c1f46e9831c994ceadc81a /src/lib/libc/net/inet_net.3 | |
parent | fca3e187a867f51bfd0b46cc4d3f49175ffddef6 (diff) | |
download | openbsd-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.3 | 23 |
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 | |||
120 | as the larger of the number of bits in the class to which the address | 120 | as the larger of the number of bits in the class to which the address |
121 | belongs and the number of bits provided rounded up modulo 8. | 121 | belongs and the number of bits provided rounded up modulo 8. |
122 | Examples: | 122 | Examples: |
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 |
125 | an 8 bit network number (class A), value | 126 | an 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 |
128 | a 24 bit network number (class C), value | 129 | a 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 |
131 | a 16 bit network number, value | 132 | a 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 |
134 | a 24 bit network number, value | 135 | a 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 |
137 | a 32 bit network number, value | 138 | a 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 |
140 | a 24 bit network number (explicit), value | 141 | a 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 |
144 | Note that when the number of bits is specified using | 145 | Note that when the number of bits is specified using |
145 | .Dq Li /bits | 146 | .Dq Li /bits |
146 | notation, the value of the address still includes all bits suplied | 147 | notation, the value of the address still includes all bits supplied |
147 | in the external representation, even those bits which are the host | 148 | in the external representation, even those bits which are the host |
148 | part of an internet address. | 149 | part of an Internet address. |
149 | Also, unlike | 150 | Also, unlike |
150 | .Xr inet_pton 3 | 151 | .Xr inet_pton 3 |
151 | where the external representation is assumed to be an internet address, the | 152 | where the external representation is assumed to be a host address, the |
152 | external representation for | 153 | external representation for |
153 | .Fn inet_net_pton | 154 | .Fn inet_net_pton |
154 | is assumed to be a network address. | 155 | is assumed to be a network address. |