#include <netinet/in.h> int inet6_rth_segments(const void *routing_buffer)
The inet6_rth_segments() function returns the number of segments (addresses) in the routing extension header.
No authorization is required.
inet6_rth_segments() returns an integer. Possible values are:
When inet6_rth_segments() fails, errno can be set to one of the following:
[EFAULT] | Bad address.
The system detected an address that was not valid while attempting to access the buffer pointed to by the routing_buffer parameter. |