tst_inet6_rth_getaddr_err - Upon an error the return value of the function is NULL
To check that upon an error the return value of the function is NULL.
./tst_inet6_rth_getaddr_err [-tooloption ...] -tooloption : v6api tool option
1. Initializes the buffer with segments set to zero 2. Get an IPv6 address from the Routing header 3. Check A: the function should return NULL
None
RFC 3542
7.6. inet6_rth_getaddr
struct in6_addr *inet6_rth_getaddr(const void *bp, int index);
This function returns a pointer to the IPv6 address specified by index (which must have a value between 0 and one less than the value returned by inet6_rth_segments()) in the Routing header described by bp. An application should first call inet6_rth_segments() to obtain the number of segments in the Routing header.
Upon an error the return value of the function is NULL.