From 8b26a028b7ec7602235d89735a3cd82dd6dd0ea3 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 29 Aug 2024 08:41:37 +0300 Subject: [PATCH] nfqws: missing linux-specific header --- nfq/darkmagic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 nfq/darkmagic.c diff --git a/nfq/darkmagic.c b/nfq/darkmagic.c old mode 100644 new mode 100755 index 2d425de..7a8b03d --- a/nfq/darkmagic.c +++ b/nfq/darkmagic.c @@ -8,6 +8,9 @@ #include #include #include +#ifdef __linux__ +#include +#endif #include "darkmagic.h" #include "helpers.h" @@ -155,8 +158,6 @@ static void fill_udphdr(struct udphdr *udp, uint16_t nsport, uint16_t ndport, ui static void fill_iphdr(struct ip *ip, const struct in_addr *src, const struct in_addr *dst, uint16_t pktlen, uint8_t proto, uint8_t ttl) { - ip->ip_tos = 0; - ip->ip_sum = 0; ip->ip_off = 0; ip->ip_v = 4; ip->ip_hl = 5;