From 207cde9eb6ab879a54917239e5416b5db30e3d43 Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 29 Aug 2024 08:47:27 +0300 Subject: [PATCH] Revert "nfqws: missing linux-specific header" This reverts commit 8b26a028b7ec7602235d89735a3cd82dd6dd0ea3. --- nfq/darkmagic.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) mode change 100755 => 100644 nfq/darkmagic.c diff --git a/nfq/darkmagic.c b/nfq/darkmagic.c old mode 100755 new mode 100644 index 7a8b03d..2d425de --- a/nfq/darkmagic.c +++ b/nfq/darkmagic.c @@ -8,9 +8,6 @@ #include #include #include -#ifdef __linux__ -#include -#endif #include "darkmagic.h" #include "helpers.h" @@ -158,6 +155,8 @@ 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;