tst_inet6_rth_add - Add the IPv6 address pointed to by addr to the end of the Routing header being constructed
To check that inet6_rth_add() can be used to add the IPv6 address pointed to by addr to the end of the Routing header being constructed.
./tst_inet6_rth_add [-tooloption ...] -tooloption : v6api tool option
1. Initializes the buffer with segments set to zero 2. Add the IPv6 address the end of the Routing header 3. Check A: the segleft member of the Routing Header is updated correctly and the address in Routing Header is correct.
None
RFC 3542
7.3. inet6_rth_add
int inet6_rth_add(void *bp, const struct in6_addr *addr);
This function adds the IPv6 address pointed to by addr to the end of the Routing header being constructed.
If successful, the segleft member of the Routing Header is updated to account for the new address in the Routing header and the return value of the function is 0. Upon an error the return value of the function is -1.