RPL source routing header extension¶
Implementation of RPL source routing extension headers.
See also
-
int
gnrc_rpl_srh_process
(ipv6_hdr_t * ipv6, gnrc_rpl_srh_t * rh)¶ Process the RPL source routing header.
Parameters
ipv6: The IPv6 header of the incoming packet. rh: A RPL source routing header. Return values
- gnrc/ipv6/ext/rh.h::@188::GNRC_IPV6_EXT_RH_AT_DST, on success
- gnrc/ipv6/ext/rh.h::@188::GNRC_IPV6_EXT_RH_FORWARDED, when
pkt
should be forwarded - gnrc/ipv6/ext/rh.h::@188::GNRC_IPV6_EXT_RH_ERROR, on error
-
struct
gnrc_rpl_srh_t
¶ The RPL Source routing header.
See also
-
uint8_t
nh
¶ next header
-
uint8_t
len
¶ length in 8 octets without first octet
-
uint8_t
type
¶ identifier of a particular routing header type
-
uint8_t
seg_left
¶ number of route segments remaining
-
uint8_t
compr
¶ number of prefix octets (comprI and comprE)
-
uint8_t
pad_resv
¶ padding and reserved
-
uint16_t
resv
¶ reserved
-
uint8_t