]> git.baikalelectronics.ru Git - kernel.git/commit
seg6: add support for IPv4 decapsulation in ipv6_srh_rcv()
authorJulien Massonneau <julien.massonneau@6wind.com>
Thu, 11 Mar 2021 15:53:18 +0000 (16:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Mar 2021 00:09:21 +0000 (16:09 -0800)
commiteee1112de3c6962f7825c9733a4bd51232803cce
tree563afd664c62fedd293ca11bbdc6e0216be48c94
parent71503ea36d704e1e6a3aee34f8af58159d74b573
seg6: add support for IPv4 decapsulation in ipv6_srh_rcv()

As specified in IETF RFC 8754, section 4.3.1.2, if the upper layer
header is IPv4 or IPv6, perform IPv6 decapsulation and resubmit the
decapsulated packet to the IPv4 or IPv6 module.
Only IPv6 decapsulation was implemented. This patch adds support for IPv4
decapsulation.

Link: https://tools.ietf.org/html/rfc8754#section-4.3.1.2
Signed-off-by: Julien Massonneau <julien.massonneau@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ipv6.h
net/ipv6/exthdrs.c