]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
icmp: prepare rfc 4884 for ipv6
authorWillem de Bruijn <willemb@google.com>
Fri, 24 Jul 2020 13:03:09 +0000 (09:03 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2020 00:12:41 +0000 (17:12 -0700)
commit178c49d9f9a4b5ade00c93480d714708fe971e24
tree715bff01ce3d3520801c36e1a2daf7f3a20273d5
parentc4e9e09f5589f9afe6b8f8c4fb078e0559bca667
icmp: prepare rfc 4884 for ipv6

The RFC 4884 spec is largely the same between IPv4 and IPv6.
Factor out the IPv4 specific parts in preparation for IPv6 support:

- icmp types supported

- icmp header size, and thus offset to original datagram start

- datagram length field offset in icmp(6)hdr.

- datagram length field word size: 4B for IPv4, 8B for IPv6.

Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/icmp.h
net/ipv4/icmp.c
net/ipv4/ip_sockglue.c