inet6_rth_segments(3) — Subroutines
NAME
inet6_rth_segments − Return the number of segments (addresses) in an IPv6 Routing header
SYNOPSIS
#include <netinet/ip6.h>
int inet6_rth_segments(
const void ∗bp );
LIBRARY
Standard C Library (libc)
PARAMETERS
bpPoints to a buffer that contains an IPv6 Routing header.
DESCRIPTION
The inet6_rth_segments() function returns the number of segments (or addresses) in an IPv6 Routing header.
RETURN VALUES
Upon successful completion, the inet6_rth_segments() function returns the number of segments, 0 (zero) or greater than 0. Upon failure, it returns a -1.
SEE ALSO
Functions: inet6_rth_add(3), inet6_rth_getaddr(3), inet6_rth_init(3), inet6_rth_reverse(3), inet6_rth_space(3).
Network Programmer’s Guide