History

net: ipv6: add support for rpl sr exthdr

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.

Alexander Aring committed 6 years ago

Commit 8610c7c1 parent f37c6057 files · +370 −3Browse files

Showing the changes to include/uapi/linux (1 of 7 files). Show all

Unified · Split

include/uapi/linux/ipv6.h+2−0
@@ -40,6 +40,7 @@ struct in6_ifreq { · 39 unmodified lines
4040 #define IPV6_SRCRT_STRICT 0x01 /* Deprecated; will be removed */
4141 #define IPV6_SRCRT_TYPE_0 0 /* Deprecated; will be removed */
4242 #define IPV6_SRCRT_TYPE_2 2 /* IPv6 type 2 Routing Header */
43+#define IPV6_SRCRT_TYPE_3 3 /* RPL Segment Routing with IPv6 */
4344 #define IPV6_SRCRT_TYPE_4 4 /* Segment Routing with IPv6 */
4445
4546 /*
@@ -187,6 +188,7 @@ enum { · 141 unmodified lines
187188 DEVCONF_DISABLE_POLICY,
188189 DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN,
189190 DEVCONF_NDISC_TCLASS,
191+ DEVCONF_RPL_SEG_ENABLED,
190192 DEVCONF_MAX
191193 };
192194