Skip to contentSkip to conversation

lwtunnel: add support for rpl segment routing

PATCH Applied Alexander Aring 2 participants 2 messages May 20, 2020 – May 27, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 lwtunnel: add support for rpl segment routing

This patch adds support for rpl segment routing settings. Example:

ip -n ns0 -6 route add 2001::3 encap rpl segs \
fe80::c8fe:beef:cafe:cafe,fe80::c8fe:beef:cafe:beef dev lowpan0

---
changes since v2:

- change output to display segments count and nice segment brackets
- fix json output, sorry.

 ip/iproute.c          |   2 +-
 ip/iproute_lwtunnel.c | 121 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 122 insertions(+), 1 deletion(-)
ip/iproute.c +1 -1
index 07c45169..05ec2c29 100644
@@ -101,7 +101,7 @@ static void usage(void)
 		"TIME := NUMBER[s|ms]\n"
 		"BOOL := [1|0]\n"
 		"FEATURES := ecn\n"
-		"ENCAPTYPE := [ mpls | ip | ip6 | seg6 | seg6local ]\n"
+		"ENCAPTYPE := [ mpls | ip | ip6 | seg6 | seg6local | rpl ]\n"
 		"ENCAPHDR := [ MPLSLABEL | SEG6HDR ]\n"
 		"SEG6HDR := [ mode SEGMODE ] segs ADDR1,ADDRi,ADDRn [hmac HMACKEYID] [cleanup]\n"
 		"SEGMODE := [ encap | inline ]\n"
ip/iproute_lwtunnel.c +121 -0

163 lines not on this page · raw message

Signature · 1 line
2.20.1
Applied
#1 lore raw
Quoted 10 lines · Alexander Aring

This patch adds support for rpl segment routing settings. Example:

ip -n ns0 -6 route add 2001::3 encap rpl segs \
fe80::c8fe:beef:cafe:cafe,fe80::c8fe:beef:cafe:beef dev lowpan0

---
changes since v2:

Quoted 7 lines

- change output to display segments count and nice segment brackets
- fix json output, sorry.

 ip/iproute.c          |   2 +-
 ip/iproute_lwtunnel.c | 121 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 122 insertions(+), 1 deletion(-)

applied to iproute2-next