summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/net/inet6_option_space.320
-rw-r--r--src/lib/libc/net/inet6_rthdr_space.314
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.\"
65Building and parsing the Hop-by-Hop and Destination options is 65Building and parsing the Hop-by-Hop and Destination options is
66complicated due to alignment constranints, padding and 66complicated due to alignment constraints, padding and
67ancillary data manipulation. 67ancillary data manipulation.
68RFC2292 defines a set of functions to help the application. 68RFC2292 defines a set of functions to help the application.
69The function prototypes for 69The function prototypes for
@@ -247,12 +247,10 @@ initialized by
247is the value of the option data length byte for this option. 247is the value of the option data length byte for this option.
248This value is required as an argument to allow the function to 248This value is required as an argument to allow the function to
249determine if padding must be appended at the end of the option. 249determine if padding must be appended at the end of the option.
250.Po 250(The
251The 251.Fn inet6_option_append
252.Fn inet6_option_append
253function does not need a data length argument 252function does not need a data length argument
254since the option data length must already be stored by the caller. 253since the option data length must already be stored by the caller.)
255.Pc
256.Pp 254.Pp
257.Fa multx 255.Fa multx
258is the value 256is the value
@@ -287,10 +285,8 @@ and
287.Fa *tptrp 285.Fa *tptrp
288points to 286points to
289the 8-bit option type field 287the 8-bit option type field
290.Po 288(which is followed by the 8-bit option
291which is followed by the 8-bit option 289data length, followed by the option data).
292data length, followed by the option data
293.Pc .
294If no more options remain 290If no more options remain
295to be processed, the return value is 291to 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
369must be set to 365must be set to
370.Dv NULL . 366.Dv NULL .
371.Pa 367.Pp
372This function starts searching for an option of the specified type 368This function starts searching for an option of the specified type
373beginning after the value of 369beginning 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
235This function returns a pointer to the IPv6 address specified by 235This 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
238which must have a value between 1 and the value returned by 238.Fn inet6_rthdr_segments )
239.Fn inet6_rthdr_segments
240.Pc
241in the Routing header described by 239in the Routing header described by
242.Fa cmsg . 240.Fa cmsg .
243An 241An
@@ -251,11 +249,9 @@ Upon an error the return value of the function is
251.Ss inet6_rthdr_getflags 249.Ss inet6_rthdr_getflags
252This function returns the flags value specified by 250This function returns the flags value specified by
253.Fa index 251.Fa index
254.Po 252(which must
255which must
256have a value between 0 and the value returned by 253have a value between 0 and the value returned by
257.Fn inet6_rthdr_segments 254.Fn inet6_rthdr_segments )
258.Pc
259in the Routing header described by 255in the Routing header described by
260.Fa cmsg . 256.Fa cmsg .
261For an IPv6 Type 0 Routing header the return value will be either 257For an IPv6 Type 0 Routing header the return value will be either