diff options
Diffstat (limited to 'src/lib/libc/net/inet6_option_space.3')
-rw-r--r-- | src/lib/libc/net/inet6_option_space.3 | 27 |
1 files changed, 15 insertions, 12 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 | .\" |