Browse Source

nfqws: missing linux-specific header

pull/337/head
bol-van 7 months ago
parent
commit
8b26a028b7
  1. 5
      nfq/darkmagic.c

5
nfq/darkmagic.c

@ -8,6 +8,9 @@
#include <sys/param.h> #include <sys/param.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#ifdef __linux__
#include <linux/in.h>
#endif
#include "darkmagic.h" #include "darkmagic.h"
#include "helpers.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) 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_off = 0;
ip->ip_v = 4; ip->ip_v = 4;
ip->ip_hl = 5; ip->ip_hl = 5;

Loading…
Cancel
Save