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;