Browse Source

nfqws: use __FAVOR_BSD define to compile with old linux netinet/tcp.h

pull/315/head
bol-van 8 months ago
parent
commit
1f2b176f16
  1. 4
      nfq/checksum.h
  2. 6
      nfq/conntrack.h
  3. 15
      nfq/darkmagic.h
  4. 4
      nfq/desync.h

4
nfq/checksum.h

@ -1,11 +1,11 @@
#pragma once
#define __FAVOR_BSD
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#include <netinet/in.h>
#define __FAVOR_BSD
#include <netinet/ip6.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>

6
nfq/conntrack.h

@ -1,22 +1,24 @@
#pragma once
#define __FAVOR_BSD
// this conntrack is not bullet-proof
// its designed to satisfy dpi desync needs only
#include "packet_queue.h"
#include <stdbool.h>
#include <stdint.h>
#include <ctype.h>
#include <sys/types.h>
#include <time.h>
#include <netinet/in.h>
#define __FAVOR_BSD
#include <netinet/ip.h>
#include <netinet/ip6.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include "packet_queue.h"
//#define HASH_BLOOM 20
#define HASH_NONFATAL_OOM 1

15
nfq/darkmagic.h

@ -1,27 +1,26 @@
#pragma once
#define __FAVOR_BSD
#include "checksum.h"
#include "packet_queue.h"
#include "pools.h"
#include <stdint.h>
#include <stdbool.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <netinet/in.h>
#define __FAVOR_BSD
#include <netinet/ip.h>
#include <netinet/ip6.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <sys/socket.h>
#include <sys/param.h>
#include "checksum.h"
#ifdef __CYGWIN__
#include "windivert/windivert.h"
#endif
#include "packet_queue.h"
#include "pools.h"
#ifndef IPPROTO_DIVERT
#define IPPROTO_DIVERT 258
#endif

4
nfq/desync.h

@ -1,11 +1,11 @@
#pragma once
#define __FAVOR_BSD
#include "darkmagic.h"
#include <stdint.h>
#include <stdbool.h>
#define __FAVOR_BSD
#include <netinet/ip.h>
#include <netinet/ip6.h>
#include <netinet/tcp.h>

Loading…
Cancel
Save