nfqws: missing linux-specific header

This commit is contained in:
bol-van 2024-08-29 08:41:37 +03:00
parent 276738fb48
commit 8b26a028b7

5
nfq/darkmagic.c Normal file → Executable file
View File

@ -8,6 +8,9 @@
#include <sys/param.h>
#include <errno.h>
#include <fcntl.h>
#ifdef __linux__
#include <linux/in.h>
#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;