Standards / Extensions | C or C++ | Dependencies |
---|---|---|
RFC3542 |
both | z/OS® V1R7 |
#define _OPEN_SYS_SOCK_IPV6
#include <netinet/in.h>
struct in6_addr *inet6_rth_getaddr(const void *bp, int index);
inet6_rth_getaddr() returns a pointer to the IPv6 address specified by index in the routing header described by bp.
If successful, inet6_rth_getaddr() returns a pointer to the IPv6 address.
Upon failure, returns NULL and errno is set to one of the following:
EINVAL If one of the following is true: