inet6_rth_add Subroutine
Purpose
Adds an IPv6 address to the end of the Routing header being constructed.
Syntax
int inet6_rth_add(void *bp, const struct in6_addr *addr);
Description
The inet6_rth_add subroutine adds the IPv6 address pointed to by addr to the end of the Routing header being constructed.
Parameters
Item | Description |
---|---|
bp | Points to the buffer of the Routing header. |
addr | Specifies which IPv6 address is to be added. |
Return Values
Item | Description |
---|---|
0 | Success. The segleft member of the Routing Header is updated to account for the new address in the Routing header. |
–1 | The new address could not be added. |