diff options
| author | jaredy <> | 2005-01-11 17:45:41 +0000 |
|---|---|---|
| committer | jaredy <> | 2005-01-11 17:45:41 +0000 |
| commit | 406f0b00349b2f0049fb5028cda512859d0b0224 (patch) | |
| tree | df460a266afe633fbfdeca568f70194a6aedca14 /src/lib/libc | |
| parent | 76b52e88a033799a1e0d1f160a191acb0c739d3d (diff) | |
| download | openbsd-406f0b00349b2f0049fb5028cda512859d0b0224.tar.gz openbsd-406f0b00349b2f0049fb5028cda512859d0b0224.tar.bz2 openbsd-406f0b00349b2f0049fb5028cda512859d0b0224.zip | |
more minor tweaks, ok jmc
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libc/net/inet6_option_space.3 | 27 | ||||
| -rw-r--r-- | src/lib/libc/net/inet6_rthdr_space.3 | 17 |
2 files changed, 26 insertions, 18 deletions
diff --git a/src/lib/libc/net/inet6_option_space.3 b/src/lib/libc/net/inet6_option_space.3 index 7c3b78033a..5beec487ac 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.17 2005/01/07 10:00:20 jmc Exp $ | 1 | .\" $OpenBSD: inet6_option_space.3,v 1.18 2005/01/11 17:45:41 jaredy Exp $ |
| 2 | .\" $KAME: inet6_option_space.3,v 1.11 2005/01/05 03:00:44 itojun Exp $ | 2 | .\" $KAME: inet6_option_space.3,v 1.11 2005/01/05 03:00:44 itojun Exp $ |
| 3 | .\" | 3 | .\" |
| 4 | .\" Copyright (C) 2004 WIDE Project. | 4 | .\" Copyright (C) 2004 WIDE Project. |
| @@ -81,7 +81,7 @@ an option when it is stored as ancillary data, including the | |||
| 81 | .Li cmsghdr | 81 | .Li cmsghdr |
| 82 | structure at the beginning, and any necessary padding at the end. | 82 | structure at the beginning, and any necessary padding at the end. |
| 83 | The | 83 | The |
| 84 | .Li nbytes | 84 | .Fa nbytes |
| 85 | argument indicates the size of the structure defining the option, | 85 | argument indicates the size of the structure defining the option, |
| 86 | and must include any pad bytes at the beginning (the value | 86 | and must include any pad bytes at the beginning (the value |
| 87 | .Li y | 87 | .Li y |
| @@ -117,7 +117,7 @@ The | |||
| 117 | .Fa bp | 117 | .Fa bp |
| 118 | argument points to a previously allocated area of memory which must be | 118 | argument points to a previously allocated area of memory which must be |
| 119 | large enough to contain all the arguments that the application intends | 119 | large enough to contain all the arguments that the application intends |
| 120 | to add later via | 120 | to add later via the |
| 121 | .Fn inet6_option_append | 121 | .Fn inet6_option_append |
| 122 | and | 122 | and |
| 123 | .Fn inet6_option_alloc | 123 | .Fn inet6_option_alloc |
| @@ -181,7 +181,8 @@ which is then followed by the option data. | |||
| 181 | The option types of | 181 | The option types of |
| 182 | .Li 0 | 182 | .Li 0 |
| 183 | and | 183 | and |
| 184 | .Li 1 are reserved for the | 184 | .Li 1 |
| 185 | are reserved for the | ||
| 185 | .Li Pad1 | 186 | .Li Pad1 |
| 186 | and | 187 | and |
| 187 | .Li PadN | 188 | .Li PadN |
| @@ -300,9 +301,9 @@ options remain to be processed, the return value is | |||
| 300 | and | 301 | and |
| 301 | .Fa *tptrp | 302 | .Fa *tptrp |
| 302 | is | 303 | is |
| 303 | .Dv NULL | 304 | .Dv NULL . |
| 304 | and when an error occurs, the return value is | 305 | When an error occurs, the return value is |
| 305 | .Li \-1 | 306 | .Li \-1 , |
| 306 | but the | 307 | but the |
| 307 | .Fa *tptrp | 308 | .Fa *tptrp |
| 308 | argument is not | 309 | argument is not |
| @@ -317,11 +318,11 @@ argument points to a | |||
| 317 | .Li cmsghdr | 318 | .Li cmsghdr |
| 318 | where the | 319 | where the |
| 319 | .Li cmsg_level | 320 | .Li cmsg_level |
| 320 | equals | 321 | element equals |
| 321 | .Dv IPPROTO_IPV6 | 322 | .Dv IPPROTO_IPV6 |
| 322 | and | 323 | and the |
| 323 | .Li cmsg_type | 324 | .Li cmsg_type |
| 324 | is either | 325 | element is either |
| 325 | .Dv IPV6_HOPOPTS | 326 | .Dv IPV6_HOPOPTS |
| 326 | or | 327 | or |
| 327 | .Dv IPV6_DSTOPTS . | 328 | .Dv IPV6_DSTOPTS . |
| @@ -402,7 +403,7 @@ When | |||
| 402 | or | 403 | or |
| 403 | .Fn inet6_option_find | 404 | .Fn inet6_option_find |
| 404 | detect an error they return | 405 | detect an error they return |
| 405 | .Li \-1 | 406 | .Li \-1 , |
| 406 | setting | 407 | setting |
| 407 | .Fa *tptrp | 408 | .Fa *tptrp |
| 408 | to a non | 409 | to a non |
| @@ -410,6 +411,8 @@ to a non | |||
| 410 | value. | 411 | value. |
| 411 | .\" | 412 | .\" |
| 412 | .Sh SEE ALSO | 413 | .Sh SEE ALSO |
| 414 | .Xr inet6 4 , | ||
| 415 | .Xr ip6 4 | ||
| 413 | .Rs | 416 | .Rs |
| 414 | .%A W. Stevens | 417 | .%A W. Stevens |
| 415 | .%A M. Thomas | 418 | .%A M. Thomas |
| @@ -431,5 +434,5 @@ The functions are documented in | |||
| 431 | (RFC 2292). | 434 | (RFC 2292). |
| 432 | .\" | 435 | .\" |
| 433 | .Sh HISTORY | 436 | .Sh HISTORY |
| 434 | The implementation first appeared in KAME advanced networking kit. | 437 | This implementation first appeared in the KAME advanced networking kit. |
| 435 | .\" | 438 | .\" |
diff --git a/src/lib/libc/net/inet6_rthdr_space.3 b/src/lib/libc/net/inet6_rthdr_space.3 index 4474228be0..7c00c42e42 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.16 2005/01/06 11:08:47 jmc Exp $ | 1 | .\" $OpenBSD: inet6_rthdr_space.3,v 1.17 2005/01/11 17:45:41 jaredy Exp $ |
| 2 | .\" $KAME: inet6_rthdr_space.3,v 1.11 2005/01/05 03:00:44 itojun Exp $ | 2 | .\" $KAME: inet6_rthdr_space.3,v 1.11 2005/01/05 03:00:44 itojun Exp $ |
| 3 | .\" | 3 | .\" |
| 4 | .\" Copyright (C) 2004 WIDE Project. | 4 | .\" Copyright (C) 2004 WIDE Project. |
| @@ -103,7 +103,9 @@ is supported, | |||
| 103 | .Dv IPV6_RTHDR_TYPE_0 , | 103 | .Dv IPV6_RTHDR_TYPE_0 , |
| 104 | and it can hold from 1 to 23 segments. | 104 | and it can hold from 1 to 23 segments. |
| 105 | The return value includes the | 105 | The return value includes the |
| 106 | size of the cmsghdr structure that precedes the routing header, and | 106 | size of the |
| 107 | .Vt cmsghdr | ||
| 108 | structure that precedes the routing header and | ||
| 107 | any required padding. | 109 | any required padding. |
| 108 | .Pp | 110 | .Pp |
| 109 | A return value of 0 indicates an error. | 111 | A return value of 0 indicates an error. |
| @@ -168,7 +170,7 @@ function specifies the strict or loose flag for the final hop of a | |||
| 168 | routing header. | 170 | routing header. |
| 169 | The | 171 | The |
| 170 | .Fa flags | 172 | .Fa flags |
| 171 | must be either | 173 | argument must be either |
| 172 | .Dv IPV6_RTHDR_LOOSE | 174 | .Dv IPV6_RTHDR_LOOSE |
| 173 | or | 175 | or |
| 174 | .Dv IPV6_RTHDR_STRICT . | 176 | .Dv IPV6_RTHDR_STRICT . |
| @@ -212,7 +214,7 @@ function returns a pointer to the IPv6 address specified by the | |||
| 212 | argument from the routing header pointed to by | 214 | argument from the routing header pointed to by |
| 213 | .Fa cmsg . | 215 | .Fa cmsg . |
| 214 | The index must be between 1 and the number returned by | 216 | The index must be between 1 and the number returned by |
| 215 | .Fn inet6_rthdr_segments | 217 | .Fn inet6_rthdr_segments , |
| 216 | described above. | 218 | described above. |
| 217 | An application must call | 219 | An application must call |
| 218 | .Fn inet6_rthdr_segments | 220 | .Fn inet6_rthdr_segments |
| @@ -254,7 +256,8 @@ The | |||
| 254 | function returns 0 when an error occurs. | 256 | function returns 0 when an error occurs. |
| 255 | .Pp | 257 | .Pp |
| 256 | The | 258 | The |
| 257 | .Fn inet6_rthdr_add , | 259 | .Fn inet6_rthdr_add |
| 260 | and | ||
| 258 | .Fn inet6_rthdr_lasthop | 261 | .Fn inet6_rthdr_lasthop |
| 259 | functions return 0 on success, and \-1 on error. | 262 | functions return 0 on success, and \-1 on error. |
| 260 | .Pp | 263 | .Pp |
| @@ -274,6 +277,8 @@ and | |||
| 274 | functions return \-1 on error. | 277 | functions return \-1 on error. |
| 275 | .\" | 278 | .\" |
| 276 | .Sh SEE ALSO | 279 | .Sh SEE ALSO |
| 280 | .Xr inet6 4 , | ||
| 281 | .Xr ip6 4 | ||
| 277 | .Rs | 282 | .Rs |
| 278 | .%A W. Stevens | 283 | .%A W. Stevens |
| 279 | .%A M. Thomas | 284 | .%A M. Thomas |
| @@ -290,7 +295,7 @@ functions return \-1 on error. | |||
| 290 | .Re | 295 | .Re |
| 291 | .\" | 296 | .\" |
| 292 | .Sh HISTORY | 297 | .Sh HISTORY |
| 293 | The implementation first appeared in KAME advanced networking kit. | 298 | This implementation first appeared in the KAME advanced networking kit. |
| 294 | .\" | 299 | .\" |
| 295 | .Sh BUGS | 300 | .Sh BUGS |
| 296 | The | 301 | The |
