aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/tcp_udp.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-03-28 03:12:19 +0100
committerToni Uhlig <matzeton@googlemail.com>2024-04-02 04:12:19 +0200
commit21572635ab15a993600c4efd1246ac0691968a75 (patch)
tree302f0fc451c36d00010ae3287f111d197f6fb3d0 /src/lib/protocols/tcp_udp.c
parent15a80527c6392a35d5f074fbc39a1a90ee2353b6 (diff)
Disable `-Wno-unused-parameter -Wno-unused-function`.
* unused parameters and functions pollute the code and decrease readability Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/tcp_udp.c')
-rw-r--r--src/lib/protocols/tcp_udp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/protocols/tcp_udp.c b/src/lib/protocols/tcp_udp.c
index 2f3e37f72..59d137b50 100644
--- a/src/lib/protocols/tcp_udp.c
+++ b/src/lib/protocols/tcp_udp.c
@@ -25,7 +25,6 @@
u_int ndpi_search_tcp_or_udp_raw(struct ndpi_detection_module_struct *ndpi_struct,
struct ndpi_flow_struct *flow,
- u_int8_t protocol,
u_int32_t saddr, u_int32_t daddr) /* host endianess */
{
u_int16_t rc;
@@ -56,7 +55,6 @@ void ndpi_search_tcp_or_udp(struct ndpi_detection_module_struct *ndpi_struct, st
if(packet->iph /* IPv4 Only: we need to support packet->iphv6 at some point */) {
proto = ndpi_search_tcp_or_udp_raw(ndpi_struct,
flow,
- flow->l4_proto,
ntohl(packet->iph->saddr),
ntohl(packet->iph->daddr));