summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmc <>2007-06-12 16:50:06 +0000
committerjmc <>2007-06-12 16:50:06 +0000
commit84283cef03fc33c8bf96c1e48567804c12b9b670 (patch)
tree19038cd51ce1139004859ead52d1730d07dff758
parenta9f7df88bc0ab9f89af4f9e71a3e4daea3a14008 (diff)
downloadopenbsd-84283cef03fc33c8bf96c1e48567804c12b9b670.tar.gz
openbsd-84283cef03fc33c8bf96c1e48567804c12b9b670.tar.bz2
openbsd-84283cef03fc33c8bf96c1e48567804c12b9b670.zip
``dot'' notation
is more readable than `.' notation zap some silly .Tn whilst here;
-rw-r--r--src/lib/libc/net/inet.328
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
76interpret character strings representing 76interpret character strings representing
77numbers expressed in the Internet standard 77numbers expressed in the Internet standard
78.Ql \&. 78.Dq dot
79notation. 79notation.
80The 80The
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.
121The routine 121The routine
122.Fn inet_ntoa 122.Fn inet_ntoa
123takes an Internet address and returns an 123takes an Internet address and returns an
124.Tn ASCII 124ASCII string representing the address in dot notation.
125string representing the address in
126.Ql \&.
127notation.
128The routine 125The routine
129.Fn inet_makeaddr 126.Fn inet_makeaddr
130takes an Internet network number and a local 127takes an Internet network number and a local
@@ -143,10 +140,7 @@ order (bytes ordered from left to right).
143All network numbers and local address parts are 140All network numbers and local address parts are
144returned as machine format integer values. 141returned as machine format integer values.
145.Sh INTERNET ADDRESSES (IP VERSION 4) 142.Sh INTERNET ADDRESSES (IP VERSION 4)
146Values specified using the 143Values specified using dot notation take one of the following forms:
147.Ql \&.
148notation take one
149of the following forms:
150.Bd -literal -offset indent 144.Bd -literal -offset indent
151a.b.c.d 145a.b.c.d
152a.b.c 146a.b.c
@@ -159,11 +153,9 @@ as a byte of data and assigned, from left to right,
159to the four bytes of an Internet address. 153to the four bytes of an Internet address.
160Note that when an Internet address is viewed as a 32-bit 154Note that when an Internet address is viewed as a 32-bit
161integer quantity on a system that uses little-endian 155integer quantity on a system that uses little-endian
162byte order (such as the 156byte order
163.Tn Intel 386, 486 157(such as the Intel 386, 486 and Pentium processors)
164and 158the bytes referred to above appear as
165.Tn Pentium
166processors) the bytes referred to above appear as
167.Dq Li d.c.b.a . 159.Dq Li d.c.b.a .
168That is, little-endian bytes are ordered from right to left. 160That is, little-endian bytes are ordered from right to left.
169.Pp 161.Pp
@@ -187,9 +179,7 @@ rearrangement.
187.Pp 179.Pp
188All numbers supplied as 180All numbers supplied as
189.Dq parts 181.Dq parts
190in a 182in a dot notation
191.Ql \&.
192notation
193may be decimal, octal, or hexadecimal, as specified 183may be decimal, octal, or hexadecimal, as specified
194in the C language (i.e., a leading 0x or 0X implies 184in the C language (i.e., a leading 0x or 0X implies
195hexadecimal; a leading 0 implies octal; 185hexadecimal; a leading 0 implies octal;