This patch adds rpl source routing receive handling. Everything works only if sysconf "rpl_seg_enabled" and source routing is enabled. Mostly the same behaviour as IPv6 segmentation routing. To handle compression and uncompression a rpl.c file is created which contains the necessary functionality. The receive handling will also care about IPv6 encapsulated so far it's specified as possible nexthdr in RFC 6554.
Showing the changes to include/uapi/linux (1 of 7 files). Show all
Unified · Split
| @@ -40,6 +40,7 @@ struct in6_ifreq { · 39 unmodified lines | ||
| 40 | 40 | #define IPV6_SRCRT_STRICT 0x01 /* Deprecated; will be removed */ |
| 41 | 41 | #define IPV6_SRCRT_TYPE_0 0 /* Deprecated; will be removed */ |
| 42 | 42 | #define IPV6_SRCRT_TYPE_2 2 /* IPv6 type 2 Routing Header */ |
| 43 | +#define IPV6_SRCRT_TYPE_3 3 /* RPL Segment Routing with IPv6 */ | |
| 43 | 44 | #define IPV6_SRCRT_TYPE_4 4 /* Segment Routing with IPv6 */ |
| 44 | 45 | |
| 45 | 46 | /* |
| @@ -187,6 +188,7 @@ enum { · 141 unmodified lines | ||
| 187 | 188 | DEVCONF_DISABLE_POLICY, |
| 188 | 189 | DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN, |
| 189 | 190 | DEVCONF_NDISC_TCLASS, |
| 191 | + DEVCONF_RPL_SEG_ENABLED, | |
| 190 | 192 | DEVCONF_MAX |
| 191 | 193 | }; |
| 192 | 194 | |