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