From 92742912ae97d732dc046a2d76999b293c6e4b3c Mon Sep 17 00:00:00 2001 From: bol-van Date: Tue, 20 Aug 2024 16:25:26 +0300 Subject: [PATCH] nfqws: use __FAVOR_BSD define to compile with old linux netinet/tcp.h --- nfq/checksum.h | 2 ++ nfq/conntrack.h | 2 ++ nfq/darkmagic.h | 2 ++ nfq/desync.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/nfq/checksum.h b/nfq/checksum.h index a10c5df..c89fcbe 100644 --- a/nfq/checksum.h +++ b/nfq/checksum.h @@ -1,5 +1,7 @@ #pragma once +#define __FAVOR_BSD + #include #include #include diff --git a/nfq/conntrack.h b/nfq/conntrack.h index 9718a49..a477658 100644 --- a/nfq/conntrack.h +++ b/nfq/conntrack.h @@ -1,5 +1,7 @@ #pragma once +#define __FAVOR_BSD + // this conntrack is not bullet-proof // its designed to satisfy dpi desync needs only diff --git a/nfq/darkmagic.h b/nfq/darkmagic.h index d2ba973..2715765 100644 --- a/nfq/darkmagic.h +++ b/nfq/darkmagic.h @@ -1,5 +1,7 @@ #pragma once +#define __FAVOR_BSD + #include #include #include diff --git a/nfq/desync.h b/nfq/desync.h index 5eb8137..7c26237 100644 --- a/nfq/desync.h +++ b/nfq/desync.h @@ -1,5 +1,7 @@ #pragma once +#define __FAVOR_BSD + #include "darkmagic.h" #include