Removed now obsolete NDPI_DETECTION_SUPPORT_IPV6: code is more readeable now

This commit is contained in:
Luca Deri
2021-02-10 19:09:11 +01:00
parent 76ac551ed3
commit ea0309d21b
10 changed files with 19 additions and 102 deletions
-4
View File
@@ -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);