inet6_rth_segments Subroutine

Purpose

Returns the number of segments (addresses) contained in a Routing header.

Syntax

int inet6_rth_segments(const void *bp);

Description

The inet6_rth_segments subroutine returns the number of segments (addresses) contained in the Routing header described by bp.

Parameters

Item Description
bp Points to the Routing header.

Return Values

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.