diff options
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/net/inet.3 | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/src/lib/libc/net/inet.3 b/src/lib/libc/net/inet.3 index 7eeca09fe6..c650df360b 100644 --- a/src/lib/libc/net/inet.3 +++ b/src/lib/libc/net/inet.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: inet.3,v 1.20 2007/05/31 19:19:30 jmc Exp $ | 1 | .\" $OpenBSD: inet.3,v 1.21 2007/06/12 16:50:06 jmc Exp $ |
| 2 | .\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $ | 2 | .\" $NetBSD: inet.3,v 1.7 1997/06/18 02:25:24 lukem Exp $ |
| 3 | .\" | 3 | .\" |
| 4 | .\" Copyright (c) 1983, 1990, 1991, 1993 | 4 | .\" Copyright (c) 1983, 1990, 1991, 1993 |
| @@ -30,7 +30,7 @@ | |||
| 30 | .\" | 30 | .\" |
| 31 | .\" @(#)inet.3 8.1 (Berkeley) 6/4/93 | 31 | .\" @(#)inet.3 8.1 (Berkeley) 6/4/93 |
| 32 | .\" | 32 | .\" |
| 33 | .Dd $Mdocdate: May 31 2007 $ | 33 | .Dd $Mdocdate: June 12 2007 $ |
| 34 | .Dt INET 3 | 34 | .Dt INET 3 |
| 35 | .Os | 35 | .Os |
| 36 | .Sh NAME | 36 | .Sh NAME |
| @@ -75,7 +75,7 @@ and | |||
| 75 | .Fn inet_network | 75 | .Fn inet_network |
| 76 | interpret character strings representing | 76 | interpret character strings representing |
| 77 | numbers expressed in the Internet standard | 77 | numbers expressed in the Internet standard |
| 78 | .Ql \&. | 78 | .Dq dot |
| 79 | notation. | 79 | notation. |
| 80 | The | 80 | The |
| 81 | .Fn inet_pton | 81 | .Fn inet_pton |
| @@ -121,10 +121,7 @@ will have been set), or it returns a pointer to the destination string. | |||
| 121 | The routine | 121 | The routine |
| 122 | .Fn inet_ntoa | 122 | .Fn inet_ntoa |
| 123 | takes an Internet address and returns an | 123 | takes an Internet address and returns an |
| 124 | .Tn ASCII | 124 | ASCII string representing the address in dot notation. |
| 125 | string representing the address in | ||
| 126 | .Ql \&. | ||
| 127 | notation. | ||
| 128 | The routine | 125 | The routine |
| 129 | .Fn inet_makeaddr | 126 | .Fn inet_makeaddr |
| 130 | takes an Internet network number and a local | 127 | takes an Internet network number and a local |
| @@ -143,10 +140,7 @@ order (bytes ordered from left to right). | |||
| 143 | All network numbers and local address parts are | 140 | All network numbers and local address parts are |
| 144 | returned as machine format integer values. | 141 | returned as machine format integer values. |
| 145 | .Sh INTERNET ADDRESSES (IP VERSION 4) | 142 | .Sh INTERNET ADDRESSES (IP VERSION 4) |
| 146 | Values specified using the | 143 | Values specified using dot notation take one of the following forms: |
| 147 | .Ql \&. | ||
| 148 | notation take one | ||
| 149 | of the following forms: | ||
| 150 | .Bd -literal -offset indent | 144 | .Bd -literal -offset indent |
| 151 | a.b.c.d | 145 | a.b.c.d |
| 152 | a.b.c | 146 | a.b.c |
| @@ -159,11 +153,9 @@ as a byte of data and assigned, from left to right, | |||
| 159 | to the four bytes of an Internet address. | 153 | to the four bytes of an Internet address. |
| 160 | Note that when an Internet address is viewed as a 32-bit | 154 | Note that when an Internet address is viewed as a 32-bit |
| 161 | integer quantity on a system that uses little-endian | 155 | integer quantity on a system that uses little-endian |
| 162 | byte order (such as the | 156 | byte order |
| 163 | .Tn Intel 386, 486 | 157 | (such as the Intel 386, 486 and Pentium processors) |
| 164 | and | 158 | the bytes referred to above appear as |
| 165 | .Tn Pentium | ||
| 166 | processors) the bytes referred to above appear as | ||
| 167 | .Dq Li d.c.b.a . | 159 | .Dq Li d.c.b.a . |
| 168 | That is, little-endian bytes are ordered from right to left. | 160 | That is, little-endian bytes are ordered from right to left. |
| 169 | .Pp | 161 | .Pp |
| @@ -187,9 +179,7 @@ rearrangement. | |||
| 187 | .Pp | 179 | .Pp |
| 188 | All numbers supplied as | 180 | All numbers supplied as |
| 189 | .Dq parts | 181 | .Dq parts |
| 190 | in a | 182 | in a dot notation |
| 191 | .Ql \&. | ||
| 192 | notation | ||
| 193 | may be decimal, octal, or hexadecimal, as specified | 183 | may be decimal, octal, or hexadecimal, as specified |
| 194 | in the C language (i.e., a leading 0x or 0X implies | 184 | in the C language (i.e., a leading 0x or 0X implies |
| 195 | hexadecimal; a leading 0 implies octal; | 185 | hexadecimal; a leading 0 implies octal; |
