Returns the number of segments (addresses) contained in a Routing header.
int inet6_rth_segments(const void *bp);
The inet6_rth_segments subroutine returns the number of segments (addresses) contained in the Routing header described by bp.
Item | Description |
---|---|
bp | Points to the Routing header. |
Item | Description |
---|---|
0 (or greater) | The number of addresses in the Routing header was returned. |
–1 | The number of addresses of the Routing header could not be returned. |