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)
commitee90c6ba341f7f72858196f15912c8b6b7d032e8
tree563afd664c62fedd293ca11bbdc6e0216be48c94
parent6c6095214a6c3d822d9b2561eccf8ee52e91107b
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