diff options
author | Toni <matzeton@googlemail.com> | 2024-04-03 14:10:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 14:10:21 +0200 |
commit | 41eef9246c6a3055e3876e3dd7aeaadecb4b76c0 (patch) | |
tree | 275c7300abf2233e8d89896a3a888ada01fef4bb /src/lib/protocols/lisp.c | |
parent | b5e8bc22147d37011621ae62b680742c8fa105dc (diff) |
Disable `-Wno-unused-parameter -Wno-unused-function`. (#2358)
* unused parameters and functions pollute the code and decrease readability
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'src/lib/protocols/lisp.c')
-rw-r--r-- | src/lib/protocols/lisp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/protocols/lisp.c b/src/lib/protocols/lisp.c index a124d6aee..b66a2e52d 100644 --- a/src/lib/protocols/lisp.c +++ b/src/lib/protocols/lisp.c @@ -29,8 +29,7 @@ #define LISP_PORT1 4342 /* TCP and UDP */ static void ndpi_int_lisp_add_connection(struct ndpi_detection_module_struct *ndpi_struct, - struct ndpi_flow_struct *flow, - u_int8_t due_to_correlation) + struct ndpi_flow_struct *flow) { ndpi_set_detected_protocol(ndpi_struct, flow, NDPI_PROTOCOL_LISP, NDPI_PROTOCOL_UNKNOWN, NDPI_CONFIDENCE_DPI); @@ -47,7 +46,7 @@ static void ndpi_check_lisp(struct ndpi_detection_module_struct *ndpi_struct, st if((packet->udp->source == lisp_port && packet->udp->dest == lisp_port) || (packet->udp->source == lisp_port1 && packet->udp->dest == lisp_port1)) { NDPI_LOG_INFO(ndpi_struct, "found lisp\n"); - ndpi_int_lisp_add_connection(ndpi_struct, flow, 0); + ndpi_int_lisp_add_connection(ndpi_struct, flow); return; } } else { @@ -63,7 +62,7 @@ static void ndpi_check_lisp(struct ndpi_detection_module_struct *ndpi_struct, st packet->payload[packet->payload_packet_len - 3] == 0xAC && packet->payload[packet->payload_packet_len - 4] == 0x9F) { NDPI_LOG_INFO(ndpi_struct, "found lisp\n"); - ndpi_int_lisp_add_connection(ndpi_struct, flow, 0); + ndpi_int_lisp_add_connection(ndpi_struct, flow); return; } } |