summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/inet6_option_space.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/inet6_option_space.3')
-rw-r--r--src/lib/libc/net/inet6_option_space.320
1 files changed, 8 insertions, 12 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 .