From 1f2b176f164fbb38505b4a8a6bde41c7cb3e883d Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 20 Aug 2024 17:08:40 +0300 Subject: [PATCH] nfqws: use __FAVOR_BSD define to compile with old linux netinet/tcp.h --- nfq/checksum.h | 4 ++-- nfq/conntrack.h | 6 ++++-- nfq/darkmagic.h | 15 +++++++-------- nfq/desync.h | 4 ++-- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/nfq/checksum.h b/nfq/checksum.h index c89fcbe..c33831e 100644 --- a/nfq/checksum.h +++ b/nfq/checksum.h @@ -1,11 +1,11 @@ #pragma once -#define __FAVOR_BSD - #include #include #include #include + +#define __FAVOR_BSD #include #include #include diff --git a/nfq/conntrack.h b/nfq/conntrack.h index a477658..6b05da3 100644 --- a/nfq/conntrack.h +++ b/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 #include #include #include #include #include + +#define __FAVOR_BSD #include #include #include #include -#include "packet_queue.h" //#define HASH_BLOOM 20 #define HASH_NONFATAL_OOM 1 diff --git a/nfq/darkmagic.h b/nfq/darkmagic.h index 2715765..e1dbdf0 100644 --- a/nfq/darkmagic.h +++ b/nfq/darkmagic.h @@ -1,27 +1,26 @@ #pragma once -#define __FAVOR_BSD +#include "checksum.h" +#include "packet_queue.h" +#include "pools.h" #include #include #include +#include +#include #include + +#define __FAVOR_BSD #include #include #include #include -#include -#include - -#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 diff --git a/nfq/desync.h b/nfq/desync.h index 7c26237..e3ce9ee 100644 --- a/nfq/desync.h +++ b/nfq/desync.h @@ -1,11 +1,11 @@ #pragma once -#define __FAVOR_BSD - #include "darkmagic.h" #include #include + +#define __FAVOR_BSD #include #include #include