Main index | Section 3 | Options |
#include <netinet/in.h>
The functions in the API are split into two groups, those that build a routing header and those that parse a received routing header. We will describe the builder functions followed by the parser functions.
The inet6_rth_init() function returns a pointer to bp on success and NULL when there is an error.
A successful addition results in the function returning 0, otherwise -1 is returned.
The return value of the function is 0 on success, or -1 when there is an error.
The next set of functions operate on a routing header that the application wants to parse. In the usual case such a routing header is received from the network, although these functions can also be used with routing headers that the application itself created.
KAME also provides examples in the advapitest directory of its kit.
The inet6_rthdr_init() function returns NULL on error. The inet6_rth_add() and inet6_rth_reverse() functions return 0 on success, or -1 upon an error.
RFC 3542, Advanced Sockets API for IPv6, May 2003.
, , , ,RFC2460, Internet Protocol, Version 6 (IPv6) Specification, December 1998.
, ,INET6_RTH_SPACE (3) | December 24, 2004 |
Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | If you have any trouble sounding condescending, find a Unix user to show you how it's done. | ” |
— Scott Adams |