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
40#define IPV6_SRCRT_STRICT 0x01 /* Deprecated; will be removed */40#define IPV6_SRCRT_STRICT 0x01 /* Deprecated; will be removed */
41#define IPV6_SRCRT_TYPE_0 0 /* Deprecated; will be removed */41#define IPV6_SRCRT_TYPE_0 0 /* Deprecated; will be removed */
42#define IPV6_SRCRT_TYPE_2 2 /* IPv6 type 2 Routing Header */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#define IPV6_SRCRT_TYPE_4 4 /* Segment Routing with IPv6 */44#define IPV6_SRCRT_TYPE_4 4 /* Segment Routing with IPv6 */
44 45
45/*46/*
@@ -187,6 +188,7 @@ enum { · 141 unmodified lines
187 DEVCONF_DISABLE_POLICY,188 DEVCONF_DISABLE_POLICY,
188 DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN,189 DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN,
189 DEVCONF_NDISC_TCLASS,190 DEVCONF_NDISC_TCLASS,
191 DEVCONF_RPL_SEG_ENABLED,
190 DEVCONF_MAX192 DEVCONF_MAX
191};193};
192 194