aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-12-05 20:16:17 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-12-27 19:29:45 +0100
commit4681ea09bc15c09679713f0828424d4d3901d929 (patch)
tree865396d104dc13a0c85a7a0b3eac08af0e7b8bf3
parent5d5bb8c1501e6ee02568d086e36081a756e45e51 (diff)
downloadpasst-4681ea09bc15c09679713f0828424d4d3901d929.tar
passt-4681ea09bc15c09679713f0828424d4d3901d929.tar.gz
passt-4681ea09bc15c09679713f0828424d4d3901d929.tar.bz2
passt-4681ea09bc15c09679713f0828424d4d3901d929.tar.lz
passt-4681ea09bc15c09679713f0828424d4d3901d929.tar.xz
passt-4681ea09bc15c09679713f0828424d4d3901d929.tar.zst
passt-4681ea09bc15c09679713f0828424d4d3901d929.zip
checksum: Don't use linux/icmp.h when netinet/ip_icmp.h will do
In most places where we need to get ICMP definitions, we get them from <netinet/ip_icmp.h>. However in checksum.c we instead include <linux/icmp.h>. Change it to use <netinet/ip_icmp.h> for consistency. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--checksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/checksum.c b/checksum.c
index 03b8a7c..f21c9b7 100644
--- a/checksum.c
+++ b/checksum.c
@@ -49,11 +49,11 @@
#include <arpa/inet.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
+#include <netinet/ip_icmp.h>
#include <stddef.h>
#include <stdint.h>
#include <linux/udp.h>
-#include <linux/icmp.h>
#include <linux/icmpv6.h>
/* Checksums are optional for UDP over IPv4, so we usually just set