summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaredy <>2005-01-11 17:45:41 +0000
committerjaredy <>2005-01-11 17:45:41 +0000
commit406f0b00349b2f0049fb5028cda512859d0b0224 (patch)
treedf460a266afe633fbfdeca568f70194a6aedca14
parent76b52e88a033799a1e0d1f160a191acb0c739d3d (diff)
downloadopenbsd-406f0b00349b2f0049fb5028cda512859d0b0224.tar.gz
openbsd-406f0b00349b2f0049fb5028cda512859d0b0224.tar.bz2
openbsd-406f0b00349b2f0049fb5028cda512859d0b0224.zip
more minor tweaks, ok jmc
-rw-r--r--src/lib/libc/net/inet6_option_space.327
-rw-r--r--src/lib/libc/net/inet6_rthdr_space.317
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
82structure at the beginning, and any necessary padding at the end. 82structure at the beginning, and any necessary padding at the end.
83The 83The
84.Li nbytes 84.Fa nbytes
85argument indicates the size of the structure defining the option, 85argument indicates the size of the structure defining the option,
86and must include any pad bytes at the beginning (the value 86and 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
118argument points to a previously allocated area of memory which must be 118argument points to a previously allocated area of memory which must be
119large enough to contain all the arguments that the application intends 119large enough to contain all the arguments that the application intends
120to add later via 120to add later via the
121.Fn inet6_option_append 121.Fn inet6_option_append
122and 122and
123.Fn inet6_option_alloc 123.Fn inet6_option_alloc
@@ -181,7 +181,8 @@ which is then followed by the option data.
181The option types of 181The option types of
182.Li 0 182.Li 0
183and 183and
184.Li 1 are reserved for the 184.Li 1
185are reserved for the
185.Li Pad1 186.Li Pad1
186and 187and
187.Li PadN 188.Li PadN
@@ -300,9 +301,9 @@ options remain to be processed, the return value is
300and 301and
301.Fa *tptrp 302.Fa *tptrp
302is 303is
303.Dv NULL 304.Dv NULL .
304and when an error occurs, the return value is 305When an error occurs, the return value is
305.Li \-1 306.Li \-1 ,
306but the 307but the
307.Fa *tptrp 308.Fa *tptrp
308argument is not 309argument is not
@@ -317,11 +318,11 @@ argument points to a
317.Li cmsghdr 318.Li cmsghdr
318where the 319where the
319.Li cmsg_level 320.Li cmsg_level
320equals 321element equals
321.Dv IPPROTO_IPV6 322.Dv IPPROTO_IPV6
322and 323and the
323.Li cmsg_type 324.Li cmsg_type
324is either 325element is either
325.Dv IPV6_HOPOPTS 326.Dv IPV6_HOPOPTS
326or 327or
327.Dv IPV6_DSTOPTS . 328.Dv IPV6_DSTOPTS .
@@ -402,7 +403,7 @@ When
402or 403or
403.Fn inet6_option_find 404.Fn inet6_option_find
404detect an error they return 405detect an error they return
405.Li \-1 406.Li \-1 ,
406setting 407setting
407.Fa *tptrp 408.Fa *tptrp
408to a non 409to a non
@@ -410,6 +411,8 @@ to a non
410value. 411value.
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
434The implementation first appeared in KAME advanced networking kit. 437This 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 ,
104and it can hold from 1 to 23 segments. 104and it can hold from 1 to 23 segments.
105The return value includes the 105The return value includes the
106size of the cmsghdr structure that precedes the routing header, and 106size of the
107.Vt cmsghdr
108structure that precedes the routing header and
107any required padding. 109any required padding.
108.Pp 110.Pp
109A return value of 0 indicates an error. 111A return value of 0 indicates an error.
@@ -168,7 +170,7 @@ function specifies the strict or loose flag for the final hop of a
168routing header. 170routing header.
169The 171The
170.Fa flags 172.Fa flags
171must be either 173argument must be either
172.Dv IPV6_RTHDR_LOOSE 174.Dv IPV6_RTHDR_LOOSE
173or 175or
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
212argument from the routing header pointed to by 214argument from the routing header pointed to by
213.Fa cmsg . 215.Fa cmsg .
214The index must be between 1 and the number returned by 216The index must be between 1 and the number returned by
215.Fn inet6_rthdr_segments 217.Fn inet6_rthdr_segments ,
216described above. 218described above.
217An application must call 219An application must call
218.Fn inet6_rthdr_segments 220.Fn inet6_rthdr_segments
@@ -254,7 +256,8 @@ The
254function returns 0 when an error occurs. 256function returns 0 when an error occurs.
255.Pp 257.Pp
256The 258The
257.Fn inet6_rthdr_add , 259.Fn inet6_rthdr_add
260and
258.Fn inet6_rthdr_lasthop 261.Fn inet6_rthdr_lasthop
259functions return 0 on success, and \-1 on error. 262functions return 0 on success, and \-1 on error.
260.Pp 263.Pp
@@ -274,6 +277,8 @@ and
274functions return \-1 on error. 277functions 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
293The implementation first appeared in KAME advanced networking kit. 298This implementation first appeared in the KAME advanced networking kit.
294.\" 299.\"
295.Sh BUGS 300.Sh BUGS
296The 301The