diff options
author | deraadt <> | 2003-01-18 23:53:49 +0000 |
---|---|---|
committer | deraadt <> | 2003-01-18 23:53:49 +0000 |
commit | a8f50674f07b24c5ec6bf483f9b7b8e81bece10a (patch) | |
tree | e8186274c018bc8b27e949dff360ea072a461f7f /src/lib | |
parent | aba0988fbff5b7f1f5d85fab2531d66d00cc046f (diff) | |
download | openbsd-a8f50674f07b24c5ec6bf483f9b7b8e81bece10a.tar.gz openbsd-a8f50674f07b24c5ec6bf483f9b7b8e81bece10a.tar.bz2 openbsd-a8f50674f07b24c5ec6bf483f9b7b8e81bece10a.zip |
inet6 fixes from jmc@prioris.mini.pw.edu.pl
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/net/inet6_option_space.3 | 20 | ||||
-rw-r--r-- | src/lib/libc/net/inet6_rthdr_space.3 | 14 |
2 files changed, 13 insertions, 21 deletions
diff --git a/src/lib/libc/net/inet6_option_space.3 b/src/lib/libc/net/inet6_option_space.3 index 73419d5239..24919d074e 100644 --- a/src/lib/libc/net/inet6_option_space.3 +++ b/src/lib/libc/net/inet6_option_space.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: inet6_option_space.3,v 1.8 2001/06/23 05:57:04 deraadt Exp $ | 1 | .\" $OpenBSD: inet6_option_space.3,v 1.9 2003/01/18 23:53:49 deraadt Exp $ |
2 | .\" $KAME: inet6_option_space.3,v 1.7 2000/05/17 14:32:13 itojun Exp $ | 2 | .\" $KAME: inet6_option_space.3,v 1.7 2000/05/17 14:32:13 itojun Exp $ |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 1983, 1987, 1991, 1993 | 4 | .\" Copyright (c) 1983, 1987, 1991, 1993 |
@@ -63,7 +63,7 @@ | |||
63 | .Sh DESCRIPTION | 63 | .Sh DESCRIPTION |
64 | .\" | 64 | .\" |
65 | Building and parsing the Hop-by-Hop and Destination options is | 65 | Building and parsing the Hop-by-Hop and Destination options is |
66 | complicated due to alignment constranints, padding and | 66 | complicated due to alignment constraints, padding and |
67 | ancillary data manipulation. | 67 | ancillary data manipulation. |
68 | RFC2292 defines a set of functions to help the application. | 68 | RFC2292 defines a set of functions to help the application. |
69 | The function prototypes for | 69 | The function prototypes for |
@@ -247,12 +247,10 @@ initialized by | |||
247 | is the value of the option data length byte for this option. | 247 | is the value of the option data length byte for this option. |
248 | This value is required as an argument to allow the function to | 248 | This value is required as an argument to allow the function to |
249 | determine if padding must be appended at the end of the option. | 249 | determine if padding must be appended at the end of the option. |
250 | .Po | 250 | (The |
251 | The | 251 | .Fn inet6_option_append |
252 | .Fn inet6_option_append | ||
253 | function does not need a data length argument | 252 | function does not need a data length argument |
254 | since the option data length must already be stored by the caller. | 253 | since the option data length must already be stored by the caller.) |
255 | .Pc | ||
256 | .Pp | 254 | .Pp |
257 | .Fa multx | 255 | .Fa multx |
258 | is the value | 256 | is the value |
@@ -287,10 +285,8 @@ and | |||
287 | .Fa *tptrp | 285 | .Fa *tptrp |
288 | points to | 286 | points to |
289 | the 8-bit option type field | 287 | the 8-bit option type field |
290 | .Po | 288 | (which is followed by the 8-bit option |
291 | which is followed by the 8-bit option | 289 | data length, followed by the option data). |
292 | data length, followed by the option data | ||
293 | .Pc . | ||
294 | If no more options remain | 290 | If no more options remain |
295 | to be processed, the return value is | 291 | to be processed, the return value is |
296 | .Li -1 | 292 | .Li -1 |
@@ -368,7 +364,7 @@ called for a given ancillary data object, | |||
368 | .Fa *tptrp | 364 | .Fa *tptrp |
369 | must be set to | 365 | must be set to |
370 | .Dv NULL . | 366 | .Dv NULL . |
371 | .Pa | 367 | .Pp |
372 | This function starts searching for an option of the specified type | 368 | This function starts searching for an option of the specified type |
373 | beginning after the value of | 369 | beginning after the value of |
374 | .Fa *tptrp . | 370 | .Fa *tptrp . |
diff --git a/src/lib/libc/net/inet6_rthdr_space.3 b/src/lib/libc/net/inet6_rthdr_space.3 index cafe0d2645..3b0d893d04 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.8 2001/06/23 05:57:04 deraadt Exp $ | 1 | .\" $OpenBSD: inet6_rthdr_space.3,v 1.9 2003/01/18 23:53:49 deraadt Exp $ |
2 | .\" $KAME: inet6_rthdr_space.3,v 1.8 2000/05/17 14:30:15 itojun Exp $ | 2 | .\" $KAME: inet6_rthdr_space.3,v 1.8 2000/05/17 14:30:15 itojun Exp $ |
3 | .\" | 3 | .\" |
4 | .\" Copyright (c) 1983, 1987, 1991, 1993 | 4 | .\" Copyright (c) 1983, 1987, 1991, 1993 |
@@ -234,10 +234,8 @@ The return value of the function is -1 upon an error. | |||
234 | .Ss inet6_rthdr_getaddr | 234 | .Ss inet6_rthdr_getaddr |
235 | This function returns a pointer to the IPv6 address specified by | 235 | This function returns a pointer to the IPv6 address specified by |
236 | .Fa index | 236 | .Fa index |
237 | .Po | 237 | (which must have a value between 1 and the value returned by |
238 | which must have a value between 1 and the value returned by | 238 | .Fn inet6_rthdr_segments ) |
239 | .Fn inet6_rthdr_segments | ||
240 | .Pc | ||
241 | in the Routing header described by | 239 | in the Routing header described by |
242 | .Fa cmsg . | 240 | .Fa cmsg . |
243 | An | 241 | An |
@@ -251,11 +249,9 @@ Upon an error the return value of the function is | |||
251 | .Ss inet6_rthdr_getflags | 249 | .Ss inet6_rthdr_getflags |
252 | This function returns the flags value specified by | 250 | This function returns the flags value specified by |
253 | .Fa index | 251 | .Fa index |
254 | .Po | 252 | (which must |
255 | which must | ||
256 | have a value between 0 and the value returned by | 253 | have a value between 0 and the value returned by |
257 | .Fn inet6_rthdr_segments | 254 | .Fn inet6_rthdr_segments ) |
258 | .Pc | ||
259 | in the Routing header described by | 255 | in the Routing header described by |
260 | .Fa cmsg . | 256 | .Fa cmsg . |
261 | For an IPv6 Type 0 Routing header the return value will be either | 257 | For an IPv6 Type 0 Routing header the return value will be either |