Revert "nfqws: missing linux-specific header"

This reverts commit 8b26a028b7.
This commit is contained in:
bol-van 2024-08-29 08:47:27 +03:00
parent 8b26a028b7
commit 207cde9eb6

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

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