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