Adds an IPv6 address to the end of the Routing header being constructed.
The inet6_rth_add subroutine adds the IPv6 address pointed to by addr to the end of the Routing header being constructed.
| Item | Description | 
|---|---|
| bp | Points to the buffer of the Routing header. | 
| addr | Specifies which IPv6 address is to be added. | 
| 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. |