tst_inet6_rth_reverse_err - Upon an error the return value of the function is -1
To check that upon an error the return value of the function is -1.
./tst_inet6_rth_reverse_err [-tooloption ...] -tooloption : v6api tool option
None
None
RFC 3542
7.4. inet6_rth_reverse
int inet6_rth_reverse(const void *in, void *out);
This function takes a Routing header extension header (pointed to by the first argument) and writes a new Routing header that sends datagrams along the reverse of that route. The function reverses the order of the addresses and sets the segleft member in the new Routing header to the number of segments. Both arguments are allowed to point to the same buffer (that is, the reversal can occur in place).
The return value of the function is 0 on success, or -1 upon an error.