aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/icmp.h
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2020-07-24 09:03:09 -0400
committerDavid S. Miller <davem@davemloft.net>2020-07-24 17:12:41 -0700
commit178c49d9f9a4b5ade00c93480d714708fe971e24 (patch)
tree715bff01ce3d3520801c36e1a2daf7f3a20273d5 /include/linux/icmp.h
parenticmp: revise rfc4884 tests (diff)
downloadlinux-dev-178c49d9f9a4b5ade00c93480d714708fe971e24.tar.xz
linux-dev-178c49d9f9a4b5ade00c93480d714708fe971e24.zip
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>
Diffstat (limited to 'include/linux/icmp.h')
-rw-r--r--include/linux/icmp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/icmp.h b/include/linux/icmp.h
index 8fc38a34cb20..0af4d210ee31 100644
--- a/include/linux/icmp.h
+++ b/include/linux/icmp.h
@@ -37,6 +37,7 @@ static inline bool icmp_is_err(int type)
}
void ip_icmp_error_rfc4884(const struct sk_buff *skb,
- struct sock_ee_data_rfc4884 *out);
+ struct sock_ee_data_rfc4884 *out,
+ int thlen, int off);
#endif /* _LINUX_ICMP_H */