The friendly Operating System for the Internet of Things
IPv6 routing header extension

Implementation of IPv6 routing header extension. More...

Detailed Description

Files

file  rh.h
 Routing extension header definitions.
 

Data Structures

struct  ipv6_ext_rh_t
 IPv6 routing extension header. More...
 

Functions

int ipv6_ext_rh_process (ipv6_hdr_t *ipv6, ipv6_ext_rh_t *ext)
 Process the routing header of an IPv6 packet. More...
 

Return codes for routing header processing

#define EXT_RH_CODE_ERROR   (-1)
 
#define EXT_RH_CODE_FORWARD   (0)
 
#define EXT_RH_CODE_OK   (1)
 

Function Documentation

int ipv6_ext_rh_process ( ipv6_hdr_t ipv6,
ipv6_ext_rh_t ext 
)
Parameters
[in,out]ipv6An IPv6 packet.
[in]extA routing header of ipv6.
Returns
EXT_RH_CODE_ERROR
EXT_RH_CODE_FORWARD
EXT_RH_CODE_OK