]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: sr: add support for ip4ip6 encapsulation
authorDavid Lebrun <david.lebrun@uclouvain.be>
Fri, 25 Aug 2017 07:56:44 +0000 (09:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Aug 2017 00:10:23 +0000 (17:10 -0700)
commite4944a1cf1aaba9be5069320ecc2a8d15060a4d1
tree339777628429f48fdb84d2a0a913e5b898e78f01
parent5ea0430e813699da7429850130c2cc83df42603e
ipv6: sr: add support for ip4ip6 encapsulation

This patch enables the SRv6 encapsulation mode to carry an IPv4 payload.
All the infrastructure was already present, I just had to add a parameter
to seg6_do_srh_encap() to specify the inner packet protocol, and perform
some additional checks.

Usage example:
ip route add 1.2.3.4 encap seg6 mode encap segs fc00::1,fc00::2 dev eth0

Signed-off-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/seg6.h
net/ipv6/seg6_iptunnel.c
net/ipv6/seg6_local.c