From c3df3a12aa88739e303340ccd7436d467b4662d2 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 16 Mar 2022 11:03:57 +0100 Subject: Fixed msys2 build warnings and re-activated CI Mingw64 build. * Removed Visual Studio leftovers. Maintaining an autotools project with VS integration requires some additional overhead. Signed-off-by: Toni Uhlig Signed-off-by: lns --- src/lib/ndpi_community_id.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/ndpi_community_id.c') diff --git a/src/lib/ndpi_community_id.c b/src/lib/ndpi_community_id.c index b27ad38d2..80f43e0ea 100644 --- a/src/lib/ndpi_community_id.c +++ b/src/lib/ndpi_community_id.c @@ -204,7 +204,7 @@ static int ndpi_community_id_finalize_and_compute_hash(u_int8_t *comm_buf, u_int switch(l4_proto) { case IPPROTO_ICMP: case IPPROTO_ICMPV6: - case IPPROTO_SCTP: + case NDPI_SCTP_PROTOCOL_TYPE: case IPPROTO_UDP: case IPPROTO_TCP: off += ndpi_community_id_buf_copy(&comm_buf[off], &src_port, sizeof(src_port)); @@ -285,7 +285,7 @@ int ndpi_flowv4_flow_hash(u_int8_t l4_proto, u_int32_t src_ip, u_int32_t dst_ip, src_port = icmp_type; dst_port = ndpi_community_id_icmp_type_to_code_v4(icmp_type, icmp_code, &icmp_one_way); break; - case IPPROTO_SCTP: + case NDPI_SCTP_PROTOCOL_TYPE: case IPPROTO_UDP: case IPPROTO_TCP: /* src/dst port ok */ @@ -344,7 +344,7 @@ int ndpi_flowv6_flow_hash(u_int8_t l4_proto, struct ndpi_in6_addr *src_ip, struc src_port = icmp_type; dst_port = ndpi_community_id_icmp_type_to_code_v6(icmp_type, icmp_code, &icmp_one_way); break; - case IPPROTO_SCTP: + case NDPI_SCTP_PROTOCOL_TYPE: case IPPROTO_UDP: case IPPROTO_TCP: /* src/dst port ok */ -- cgit v1.2.3