aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2025-02-17 12:55:06 +0100
committerGitHub <noreply@github.com>2025-02-17 12:55:06 +0100
commitc0c9f649ed807c25a2a14f840d52132521244f04 (patch)
tree97a5f52f2e0b9a692b098cd68615096ddf75c3c7
parent6899f6c17c79b5744f30400e1a2565ea60b7e799 (diff)
Fix/restore some public defines (#2734)
See 6899f6c17 and 9bf513b34
-rw-r--r--src/include/ndpi_define.h.in2
-rw-r--r--src/lib/protocols/dns.c2
-rw-r--r--windows/src/ndpi_define.h3
3 files changed, 4 insertions, 3 deletions
diff --git a/src/include/ndpi_define.h.in b/src/include/ndpi_define.h.in
index a60745763..02fdb521d 100644
--- a/src/include/ndpi_define.h.in
+++ b/src/include/ndpi_define.h.in
@@ -222,7 +222,7 @@ static inline uint64_t get_u_int64_t(const uint8_t* X, int O)
#define NDPI_MINOR @NDPI_MINOR@
#define NDPI_PATCH @NDPI_PATCH@
-#define NDPI_MAX_DNS_REQUESTS 16
+#define NDPI_MAX_DNS_REQUESTS 48
#define NDPI_MIN_NUM_STUN_DETECTION 8
/* IMPORTANT: order according to its severity */
diff --git a/src/lib/protocols/dns.c b/src/lib/protocols/dns.c
index ec513287c..54f3ec2f7 100644
--- a/src/lib/protocols/dns.c
+++ b/src/lib/protocols/dns.c
@@ -38,8 +38,6 @@
#define PKT_LEN_ALERT 512
-#define NDPI_MAX_DNS_REQUESTS 48
-
static void search_dns(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow);
diff --git a/windows/src/ndpi_define.h b/windows/src/ndpi_define.h
index 6792df9a5..e1e9aafc4 100644
--- a/windows/src/ndpi_define.h
+++ b/windows/src/ndpi_define.h
@@ -222,6 +222,9 @@ static inline u_int64_t get_u_int64_t(const u_int8_t* X, int O)
#define NDPI_MINOR 0
#define NDPI_PATCH 0
+#define NDPI_MAX_DNS_REQUESTS 48
+#define NDPI_MIN_NUM_STUN_DETECTION 8
+
/* IMPORTANT: order according to its severity */
#define NDPI_CIPHER_SAFE 0
#define NDPI_CIPHER_WEAK 1