summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraaron <>2000-04-18 03:01:33 +0000
committeraaron <>2000-04-18 03:01:33 +0000
commit6e79b911ce0057b5b91d0f9cedd766e0163fb043 (patch)
tree9478c878ca3f3846100f116eeb1bed16f321f335
parent59ca3f5f8991ab72904434fb49ef0999d64ae2e8 (diff)
downloadopenbsd-6e79b911ce0057b5b91d0f9cedd766e0163fb043.tar.gz
openbsd-6e79b911ce0057b5b91d0f9cedd766e0163fb043.tar.bz2
openbsd-6e79b911ce0057b5b91d0f9cedd766e0163fb043.zip
Repairs, mostly removing hard sentence breaks.
-rw-r--r--src/lib/libc/net/byteorder.315
-rw-r--r--src/lib/libc/net/ethers.320
-rw-r--r--src/lib/libc/net/gethostbyname.38
-rw-r--r--src/lib/libc/net/getifaddrs.35
-rw-r--r--src/lib/libc/net/getnameinfo.34
-rw-r--r--src/lib/libc/net/getnetent.315
-rw-r--r--src/lib/libc/net/getprotoent.35
-rw-r--r--src/lib/libc/net/getservent.35
-rw-r--r--src/lib/libc/net/inet.345
-rw-r--r--src/lib/libc/net/inet6_rthdr_space.39
-rw-r--r--src/lib/libc/net/inet_net.36
-rw-r--r--src/lib/libc/net/link_addr.34
-rw-r--r--src/lib/libc/net/net_addrcmp.39
-rw-r--r--src/lib/libc/net/rcmd.315
14 files changed, 96 insertions, 69 deletions
diff --git a/src/lib/libc/net/byteorder.3 b/src/lib/libc/net/byteorder.3
index 64a13d47ba..9d8fa7221f 100644
--- a/src/lib/libc/net/byteorder.3
+++ b/src/lib/libc/net/byteorder.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: byteorder.3,v 1.7 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: byteorder.3,v 1.8 2000/04/18 03:01:30 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -83,7 +83,8 @@
83.Fn swap16 "u_int16_t val16" 83.Fn swap16 "u_int16_t val16"
84.Sh DESCRIPTION 84.Sh DESCRIPTION
85These routines convert 16- and 32-bit quantities between different 85These routines convert 16- and 32-bit quantities between different
86byte orderings. The 86byte orderings.
87The
87.Dq swap 88.Dq swap
88functions reverse the byte ordering of 89functions reverse the byte ordering of
89the given quantity, the others converts either from/to the native 90the given quantity, the others converts either from/to the native
@@ -127,7 +128,8 @@ The swap functions are of the form: swap{size}.
127Names involving 128Names involving
128.Sq n 129.Sq n
129convert quantities between network 130convert quantities between network
130byte order and host byte order. The last letter 131byte order and host byte order.
132The last letter
131.Pf ( Sq s 133.Pf ( Sq s
132or 134or
133.Sq l ) 135.Sq l )
@@ -136,7 +138,8 @@ for the traditional names for such quantities,
136.Li short 138.Li short
137and 139and
138.Li long , 140.Li long ,
139respectively. Today, the C concept of 141respectively.
142Today, the C concept of
140.Li short 143.Li short
141and 144and
142.Li long 145.Li long
@@ -176,5 +179,5 @@ functions appeared in
176.Bx 4.2 . 179.Bx 4.2 .
177.Sh BUGS 180.Sh BUGS
178On the vax, alpha, i386, and so far mips, 181On the vax, alpha, i386, and so far mips,
179bytes are handled backwards from most everyone else in 182bytes are handled backwards from most everyone else in the world.
180the world. This is not expected to be fixed in the near future. 183This is not expected to be fixed in the near future.
diff --git a/src/lib/libc/net/ethers.3 b/src/lib/libc/net/ethers.3
index 39968f3e65..8c5066a760 100644
--- a/src/lib/libc/net/ethers.3
+++ b/src/lib/libc/net/ethers.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: ethers.3,v 1.11 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: ethers.3,v 1.12 2000/04/18 03:01:31 aaron Exp $
2.\" 2.\"
3.\" Written by roland@frob.com. Public domain. 3.\" Written by roland@frob.com. Public domain.
4.\" 4.\"
@@ -41,15 +41,15 @@ function converts this structure into an
41string of the form 41string of the form
42.Dq xx:xx:xx:xx:xx:xx , 42.Dq xx:xx:xx:xx:xx:xx ,
43consisting of 6 hexadecimal numbers separated 43consisting of 6 hexadecimal numbers separated
44by colons. It returns a pointer to a static buffer that is reused for 44by colons.
45each call. 45It returns a pointer to a static buffer that is reused for each call.
46The 46The
47.Fn ether_aton 47.Fn ether_aton
48converts an 48converts an
49.Tn ASCII 49.Tn ASCII
50string of the same form and to a structure 50string of the same form and to a structure
51containing the 6 octets of the address. It returns a pointer to a 51containing the 6 octets of the address.
52static structure that is reused for each call. 52It returns a pointer to a static structure that is reused for each call.
53.Pp 53.Pp
54The 54The
55.Fn ether_ntohost 55.Fn ether_ntohost
@@ -61,13 +61,15 @@ addresses,
61The 61The
62.Fn ether_ntohost 62.Fn ether_ntohost
63function looks up the given Ethernet address and writes the associated 63function looks up the given Ethernet address and writes the associated
64host name into the character buffer passed. This buffer should be 64host name into the character buffer passed.
65This buffer should be
65.Dv MAXHOSTNAMELEN 66.Dv MAXHOSTNAMELEN
66characters in size. 67characters in size.
67The 68The
68.Fn ether_hostton 69.Fn ether_hostton
69function looks up the given host name and writes the associated 70function looks up the given host name and writes the associated
70Ethernet address into the structure passed. Both functions return 71Ethernet address into the structure passed.
72Both functions return
71zero if they find the requested host name or address, and \-1 if not. 73zero if they find the requested host name or address, and \-1 if not.
72.Pp 74.Pp
73Each call reads 75Each call reads
@@ -90,8 +92,8 @@ function parses a line from the
90.Pa /etc/ethers 92.Pa /etc/ethers
91file and fills in the passed 93file and fills in the passed
92.Li struct ether_addr 94.Li struct ether_addr
93and character buffer with the Ethernet address and host name on the line. It 95and character buffer with the Ethernet address and host name on the line.
94returns zero if the line was successfully parsed and \-1 if not. 96It returns zero if the line was successfully parsed and \-1 if not.
95The character buffer should be 97The character buffer should be
96.Dv MAXHOSTNAMELEN 98.Dv MAXHOSTNAMELEN
97characters in size. 99characters in size.
diff --git a/src/lib/libc/net/gethostbyname.3 b/src/lib/libc/net/gethostbyname.3
index aced5ba616..f1353288c5 100644
--- a/src/lib/libc/net/gethostbyname.3
+++ b/src/lib/libc/net/gethostbyname.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: gethostbyname.3,v 1.14 2000/04/15 02:15:22 aaron Exp $ 1.\" $OpenBSD: gethostbyname.3,v 1.15 2000/04/18 03:01:31 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1987, 1991, 1993 3.\" Copyright (c) 1983, 1987, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -166,12 +166,14 @@ connection.
166.Pp 166.Pp
167The 167The
168.Fn herror 168.Fn herror
169function prints an error message describing the failure. If its argument 169function prints an error message describing the failure.
170If its argument
170.Fa string 171.Fa string
171is non-null, 172is non-null,
172it is prepended to the message string and separated from it by a colon 173it is prepended to the message string and separated from it by a colon
173.Pq Ql \&: 174.Pq Ql \&:
174and a space. The error message is printed with a trailing newline. 175and a space.
176The error message is printed with a trailing newline.
175The contents of the error message is the same as that returned by 177The contents of the error message is the same as that returned by
176.Fn hstrerror 178.Fn hstrerror
177with argument 179with argument
diff --git a/src/lib/libc/net/getifaddrs.3 b/src/lib/libc/net/getifaddrs.3
index fd36edb3cf..d69e0f62f5 100644
--- a/src/lib/libc/net/getifaddrs.3
+++ b/src/lib/libc/net/getifaddrs.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getifaddrs.3,v 1.5 2000/04/16 13:48:53 itojun Exp $ 1.\" $OpenBSD: getifaddrs.3,v 1.6 2000/04/18 03:01:31 aaron Exp $
2.\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp 2.\" BSDI getifaddrs.3,v 2.5 2000/02/23 14:51:59 dab Exp
3.\" 3.\"
4.\" Copyright (c) 1995, 1999 4.\" Copyright (c) 1995, 1999
@@ -96,7 +96,8 @@ References the destination address on a P2P interface,
96if one exists, otherwise it is 96if one exists, otherwise it is
97.Dv NULL . 97.Dv NULL .
98.It Fa ifa_data 98.It Fa ifa_data
99References address family specific data. For 99References address family specific data.
100For
100.Dv AF_LINK 101.Dv AF_LINK
101addresses it contains a pointer to the 102addresses it contains a pointer to the
102.Li struct if_data 103.Li struct if_data
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3
index 8aee071602..74690d0e41 100644
--- a/src/lib/libc/net/getnameinfo.3
+++ b/src/lib/libc/net/getnameinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnameinfo.3,v 1.5 2000/01/17 08:20:28 deraadt Exp $ 1.\" $OpenBSD: getnameinfo.3,v 1.6 2000/04/18 03:01:31 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1987, 1991, 1993 3.\" Copyright (c) 1983, 1987, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -102,7 +102,7 @@ or
102.Fa servlen 102.Fa servlen
103arguments. 103arguments.
104Otherwise, the caller must provide buffers large enough to hold the 104Otherwise, the caller must provide buffers large enough to hold the
105nodename and the service name, including the terminating null characters. 105nodename and the service name, including the terminating null characters.
106.Pp 106.Pp
107Unfortunately most systems do not provide constants that specify the 107Unfortunately most systems do not provide constants that specify the
108maximum size of either a fully-qualified domain name or a service name. 108maximum size of either a fully-qualified domain name or a service name.
diff --git a/src/lib/libc/net/getnetent.3 b/src/lib/libc/net/getnetent.3
index 05478afdfb..fba5505fec 100644
--- a/src/lib/libc/net/getnetent.3
+++ b/src/lib/libc/net/getnetent.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnetent.3,v 1.8 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: getnetent.3,v 1.9 2000/04/18 03:01:31 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -84,8 +84,8 @@ A zero-terminated list of alternate names for the network.
84The type of the network number returned; currently only 84The type of the network number returned; currently only
85.Dv AF_INET . 85.Dv AF_INET .
86.It Fa n_net 86.It Fa n_net
87The network number. Network numbers are returned in machine byte 87The network number.
88order. 88Network numbers are returned in machine byte order.
89.El 89.El
90.Pp 90.Pp
91The 91The
@@ -96,7 +96,8 @@ reads the next line of the file, opening the file if necessary.
96The 96The
97.Fn setnetent 97.Fn setnetent
98function 98function
99opens and rewinds the file. If the 99opens and rewinds the file.
100If the
100.Fa stayopen 101.Fa stayopen
101flag is non-zero, 102flag is non-zero,
102the net data base will not be closed after each call to 103the net data base will not be closed after each call to
@@ -146,6 +147,6 @@ functions appeared in
146.Sh BUGS 147.Sh BUGS
147The data space used by these functions is static; if future use 148The data space used by these functions is static; if future use
148requires the data, it should be copied before any subsequent calls 149requires the data, it should be copied before any subsequent calls
149to these functions overwrite it. Only Internet network numbers 150to these functions overwrite it.
150are currently understood. Expecting network numbers to fit in no 151Only Internet network numbers are currently understood.
151more than 32 bits is naive. 152Expecting network numbers to fit in no more than 32 bits is naive.
diff --git a/src/lib/libc/net/getprotoent.3 b/src/lib/libc/net/getprotoent.3
index 01f752ad5f..e4e7e6ec45 100644
--- a/src/lib/libc/net/getprotoent.3
+++ b/src/lib/libc/net/getprotoent.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getprotoent.3,v 1.5 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: getprotoent.3,v 1.6 2000/04/18 03:01:32 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -92,7 +92,8 @@ reads the next line of the file, opening the file if necessary.
92The 92The
93.Fn setprotoent 93.Fn setprotoent
94function 94function
95opens and rewinds the file. If the 95opens and rewinds the file.
96If the
96.Fa stayopen 97.Fa stayopen
97flag is non-zero, 98flag is non-zero,
98the net data base will not be closed after each call to 99the net data base will not be closed after each call to
diff --git a/src/lib/libc/net/getservent.3 b/src/lib/libc/net/getservent.3
index 3ef95fb817..21591cdcbb 100644
--- a/src/lib/libc/net/getservent.3
+++ b/src/lib/libc/net/getservent.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getservent.3,v 1.8 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: getservent.3,v 1.9 2000/04/18 03:01:32 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -96,7 +96,8 @@ reads the next line of the file, opening the file if necessary.
96The 96The
97.Fn setservent 97.Fn setservent
98function 98function
99opens and rewinds the file. If the 99opens and rewinds the file.
100If the
100.Fa stayopen 101.Fa stayopen
101flag is non-zero, 102flag is non-zero,
102the net data base will not be closed after each call to 103the net data base will not be closed after each call to
diff --git a/src/lib/libc/net/inet.3 b/src/lib/libc/net/inet.3
index 1e38bdc056..eb95f6c364 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.8 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: inet.3,v 1.9 2000/04/18 03:01:32 aaron 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
@@ -85,12 +85,13 @@ The
85function converts a presentation format address (that is, printable form 85function converts a presentation format address (that is, printable form
86as held in a character string) to network format (usually a 86as held in a character string) to network format (usually a
87.Li struct in_addr 87.Li struct in_addr
88or some other internal binary representation, in network byte order). It 88or some other internal binary representation, in network byte order).
89returns 1 if the address was valid for the specified address family, or 89It returns 1 if the address was valid for the specified address family, or
900 if the address wasn't parseable in the specified address family, or \-1 900 if the address wasn't parseable in the specified address family, or \-1
91if some system error occurred (in which case 91if some system error occurred (in which case
92.Va errno 92.Va errno
93will have been set). This function is presently valid for 93will have been set).
94This function is presently valid for
94.Dv AF_INET 95.Dv AF_INET
95and 96and
96.Dv AF_INET6 . 97.Dv AF_INET6 .
@@ -113,7 +114,8 @@ The function
113converts an address from network format (usually a 114converts an address from network format (usually a
114.Li struct in_addr 115.Li struct in_addr
115or some other binary form, in network byte order) to presentation format 116or some other binary form, in network byte order) to presentation format
116(suitable for external display purposes). It returns 117(suitable for external display purposes).
118It returns
117.Dv NULL 119.Dv NULL
118if a system 120if a system
119error occurs (in which case, 121error occurs (in which case,
@@ -125,11 +127,13 @@ takes an Internet address and returns an
125.Tn ASCII 127.Tn ASCII
126string representing the address in 128string representing the address in
127.Ql \&. 129.Ql \&.
128notation. The routine 130notation.
131The routine
129.Fn inet_makeaddr 132.Fn inet_makeaddr
130takes an Internet network number and a local 133takes an Internet network number and a local
131network address and constructs an Internet address 134network address and constructs an Internet address
132from it. The routines 135from it.
136The routines
133.Fn inet_netof 137.Fn inet_netof
134and 138and
135.Fn inet_lnaof 139.Fn inet_lnaof
@@ -155,8 +159,8 @@ a
155.Pp 159.Pp
156When four parts are specified, each is interpreted 160When four parts are specified, each is interpreted
157as a byte of data and assigned, from left to right, 161as a byte of data and assigned, from left to right,
158to the four bytes of an Internet address. Note 162to the four bytes of an Internet address.
159that when an Internet address is viewed as a 32-bit 163Note that when an Internet address is viewed as a 32-bit
160integer quantity on a system that uses little-endian 164integer quantity on a system that uses little-endian
161byte order (such as the 165byte order (such as the
162.Tn Intel 386, 486 166.Tn Intel 386, 486
@@ -214,16 +218,20 @@ every field (except for the case described in 2.).
214.It 218.It
215Due to the method of allocating certain styles of IPv6 219Due to the method of allocating certain styles of IPv6
216addresses, it will be common for addresses to contain long 220addresses, it will be common for addresses to contain long
217strings of zero bits. In order to make writing addresses 221strings of zero bits.
222In order to make writing addresses
218.Pp 223.Pp
219containing zero bits easier a special syntax is available to 224containing zero bits easier a special syntax is available to
220compress the zeros. The use of 225compress the zeros.
226The use of
221.Dq \&:\&: 227.Dq \&:\&:
222indicates multiple groups 228indicates multiple groups
223of 16 bits of zeros. The 229of 16 bits of zeros.
230The
224.Dq \&:\&: 231.Dq \&:\&:
225can only appear once in an 232can only appear once in an
226address. The 233address.
234The
227.Dq \&:\&: 235.Dq \&:\&:
228can also be used to compress the leading and/or trailing zeros in an address. 236can also be used to compress the leading and/or trailing zeros in an address.
229.Pp 237.Pp
@@ -248,7 +256,8 @@ dealing with a mixed environment of IPv4 and IPv6 nodes is
248x:x:x:x:x:x:d.d.d.d, where the 'x's are the hexadecimal values 256x:x:x:x:x:x:d.d.d.d, where the 'x's are the hexadecimal values
249of the six high-order 16-bit pieces of the address, and the 'd's 257of the six high-order 16-bit pieces of the address, and the 'd's
250are the decimal values of the four low-order 8-bit pieces of the 258are the decimal values of the four low-order 8-bit pieces of the
251address (standard IPv4 representation). Examples: 259address (standard IPv4 representation).
260Examples:
252.Bd -literal -offset indent 261.Bd -literal -offset indent
2530:0:0:0:0:0:13.1.68.3 2620:0:0:0:0:0:13.1.68.3
2540:0:0:0:0:FFFF:129.144.52.38 2630:0:0:0:0:FFFF:129.144.52.38
@@ -281,10 +290,12 @@ The
281and 290and
282.Nm inet_pton 291.Nm inet_pton
283functions conforms to the IETF IPng BSD API and address formatting 292functions conforms to the IETF IPng BSD API and address formatting
284specifications. Note that 293specifications.
294Note that
285.Nm inet_pton 295.Nm inet_pton
286does not accept 1-, 2-, or 3-part dotted addresses; all four parts 296does not accept 1-, 2-, or 3-part dotted addresses; all four parts
287must be specified. This is a narrower input set than that accepted by 297must be specified.
298This is a narrower input set than that accepted by
288.Nm inet_aton . 299.Nm inet_aton .
289.Sh HISTORY 300.Sh HISTORY
290The 301The
diff --git a/src/lib/libc/net/inet6_rthdr_space.3 b/src/lib/libc/net/inet6_rthdr_space.3
index 439c270357..6c84bdee78 100644
--- a/src/lib/libc/net/inet6_rthdr_space.3
+++ b/src/lib/libc/net/inet6_rthdr_space.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: inet6_rthdr_space.3,v 1.4 2000/01/18 21:49:01 aaron Exp $ 1.\" $OpenBSD: inet6_rthdr_space.3,v 1.5 2000/04/18 03:01:32 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1987, 1991, 1993 3.\" Copyright (c) 1983, 1987, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -70,8 +70,8 @@
70.\" 70.\"
71.Sh DESCRIPTION 71.Sh DESCRIPTION
72RFC2292 IPv6 advanced API defines eight 72RFC2292 IPv6 advanced API defines eight
73functions that the application calls to build and examine a Routing 73functions that the application calls to build and examine a Routing header
74header. Four functions build a Routing header: 74Four functions build a Routing header:
75.Bl -hang 75.Bl -hang
76.It Fn inet6_rthdr_space 76.It Fn inet6_rthdr_space
77return #bytes required for ancillary data 77return #bytes required for ancillary data
@@ -107,7 +107,8 @@ containing the specified number of
107.Fa segments 107.Fa segments
108.Pq addresses . 108.Pq addresses .
109For an IPv6 Type 0 Routing header, the number 109For an IPv6 Type 0 Routing header, the number
110of segments must be between 1 and 23, inclusive. The return value 110of segments must be between 1 and 23, inclusive.
111The return value
111includes the size of the cmsghdr structure that precedes the Routing 112includes the size of the cmsghdr structure that precedes the Routing
112header, and any required padding. 113header, and any required padding.
113.Pp 114.Pp
diff --git a/src/lib/libc/net/inet_net.3 b/src/lib/libc/net/inet_net.3
index 1eb157c429..12b1a4daa0 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.4 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: inet_net.3,v 1.5 2000/04/18 03:01:32 aaron 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.
@@ -101,8 +101,8 @@ a
101.Pp 101.Pp
102When four parts are specified, each is interpreted 102When four parts are specified, each is interpreted
103as a byte of data and assigned, from left to right, 103as a byte of data and assigned, from left to right,
104to the four bytes of an Internet network number. Note 104to the four bytes of an Internet network number.
105that when an Internet network number is viewed as a 32-bit 105Note that when an Internet network number is viewed as a 32-bit
106integer quantity on a system that uses little-endian 106integer quantity on a system that uses little-endian
107byte order (such as the Intel 386, 486, and Pentium processors) 107byte order (such as the Intel 386, 486, and Pentium processors)
108the bytes referred to above appear as 108the bytes referred to above appear as
diff --git a/src/lib/libc/net/link_addr.3 b/src/lib/libc/net/link_addr.3
index b7ada81997..29c2449f77 100644
--- a/src/lib/libc/net/link_addr.3
+++ b/src/lib/libc/net/link_addr.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: link_addr.3,v 1.6 1999/07/05 04:40:59 aaron Exp $ 1.\" $OpenBSD: link_addr.3,v 1.7 2000/04/18 03:01:32 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1993 3.\" Copyright (c) 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -108,7 +108,7 @@ The
108and 108and
109.Fn link_ntoa 109.Fn link_ntoa
110functions appeared in 110functions appeared in
111.Bx 4.3 Reno . 111.Bx 4.3 Reno .
112.Sh BUGS 112.Sh BUGS
113The returned values for link_ntoa 113The returned values for link_ntoa
114reside in a static memory area. 114reside in a static memory area.
diff --git a/src/lib/libc/net/net_addrcmp.3 b/src/lib/libc/net/net_addrcmp.3
index c29624dc87..8f7de8ef44 100644
--- a/src/lib/libc/net/net_addrcmp.3
+++ b/src/lib/libc/net/net_addrcmp.3
@@ -26,7 +26,8 @@ returns 0.
26.Pp 26.Pp
27The 27The
28.Fa sa_len 28.Fa sa_len
29fields are compared first. If they do not match, 29fields are compared first.
30If they do not match,
30.Fn net_addrcmp 31.Fn net_addrcmp
31returns \-1 or 1 if 32returns \-1 or 1 if
32.Li sa1->sa_len 33.Li sa1->sa_len
@@ -36,7 +37,8 @@ respectively.
36.Pp 37.Pp
37Next, the 38Next, the
38.Fa sa_family 39.Fa sa_family
39members are compared. If they do not match, 40members are compared.
41If they do not match,
40.Fn net_addrcmp 42.Fn net_addrcmp
41returns \-1 or 1 if 43returns \-1 or 1 if
42.Li sa1->sa_family 44.Li sa1->sa_family
@@ -51,7 +53,8 @@ and
51fields match, 53fields match,
52the protocol-specific data (the 54the protocol-specific data (the
53.Fa sa_data 55.Fa sa_data
54field) is compared. If there's a match, both 56field) is compared.
57If there's a match, both
55.Fa sa1 58.Fa sa1
56and 59and
57.Fa sa2 60.Fa sa2
diff --git a/src/lib/libc/net/rcmd.3 b/src/lib/libc/net/rcmd.3
index ea71e40d71..04230ef774 100644
--- a/src/lib/libc/net/rcmd.3
+++ b/src/lib/libc/net/rcmd.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: rcmd.3,v 1.19 2000/04/15 11:46:02 aaron Exp $ 1.\" $OpenBSD: rcmd.3,v 1.20 2000/04/18 03:01:33 aaron Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -65,7 +65,8 @@ The
65function 65function
66is used by the superuser to execute a command on a remote 66is used by the superuser to execute a command on a remote
67machine using an authentication scheme based on reserved 67machine using an authentication scheme based on reserved
68port numbers. If the calling process is not setuid, the 68port numbers.
69If the calling process is not setuid, the
69.Ev RSH 70.Ev RSH
70environment variable is set, and 71environment variable is set, and
71.Fa inport 72.Fa inport
@@ -170,12 +171,12 @@ The
170and 171and
171.Fn rresvport_af 172.Fn rresvport_af
172functions are used to obtain a socket with a privileged 173functions are used to obtain a socket with a privileged
173address bound to it. This socket is suitable for use 174address bound to it.
174by 175This socket is suitable for use by
175.Fn rcmd 176.Fn rcmd
176and several other functions. Privileged Internet ports are those 177and several other functions.
177in the range 0 to 1023. Only the superuser 178Privileged Internet ports are those in the range 0 to 1023.
178is allowed to bind an address of this sort to a socket. 179Only the superuser is allowed to bind an address of this sort to a socket.
179.Fn rresvport 180.Fn rresvport
180and 181and
181.Fn rresvport_af 182.Fn rresvport_af