aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/tcp_udp.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2021-02-10 19:09:11 +0100
committerLuca Deri <deri@ntop.org>2021-02-10 19:09:11 +0100
commitea0309d21b168d70b853986a342d08966012d07b (patch)
tree2b18956ccd7ab817ab23983c424b73de25495d3d /src/lib/protocols/tcp_udp.c
parent76ac551ed385ad6e0e346b05b5c94dd7a00e693b (diff)
Removed now obsolete NDPI_DETECTION_SUPPORT_IPV6: code is more readeable now
Diffstat (limited to 'src/lib/protocols/tcp_udp.c')
-rw-r--r--src/lib/protocols/tcp_udp.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/protocols/tcp_udp.c b/src/lib/protocols/tcp_udp.c
index 3d6d14d13..b167b08e4 100644
--- a/src/lib/protocols/tcp_udp.c
+++ b/src/lib/protocols/tcp_udp.c
@@ -73,11 +73,7 @@ void ndpi_search_tcp_or_udp(struct ndpi_detection_module_struct *ndpi_struct, st
proto = ndpi_search_tcp_or_udp_raw(ndpi_struct,
flow,
flow->packet.iph ? flow->packet.iph->protocol :
-#ifdef NDPI_DETECTION_SUPPORT_IPV6
flow->packet.iphv6->ip6_hdr.ip6_un1_nxt,
-#else
- 0,
-#endif
ntohl(packet->iph->saddr),
ntohl(packet->iph->daddr),
sport, dport);