Renamed ndpi_fill_ip6_protocol_category in ndpi_fill_ipv6_protocol_category

This commit is contained in:
Luca Deri
2024-04-11 12:37:39 +02:00
parent 9ff4bece33
commit 8b4fdbc0fb
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -1002,7 +1002,7 @@ extern "C" {
u_int32_t saddr, u_int32_t saddr,
u_int32_t daddr, u_int32_t daddr,
ndpi_protocol *ret); ndpi_protocol *ret);
int ndpi_fill_ip6_protocol_category(struct ndpi_detection_module_struct *ndpi_str, int ndpi_fill_ipv6_protocol_category(struct ndpi_detection_module_struct *ndpi_str,
struct ndpi_flow_struct *flow, struct ndpi_flow_struct *flow,
struct in6_addr *saddr, struct in6_addr *daddr, struct in6_addr *saddr, struct in6_addr *daddr,
ndpi_protocol *ret); ndpi_protocol *ret);
+3 -2
View File
@@ -8067,7 +8067,7 @@ int ndpi_fill_ip_protocol_category(struct ndpi_detection_module_struct *ndpi_str
/* ********************************************************************************* */ /* ********************************************************************************* */
int ndpi_fill_ip6_protocol_category(struct ndpi_detection_module_struct *ndpi_str, int ndpi_fill_ipv6_protocol_category(struct ndpi_detection_module_struct *ndpi_str,
struct ndpi_flow_struct *flow, struct ndpi_flow_struct *flow,
struct in6_addr *saddr, struct in6_addr *daddr, struct in6_addr *saddr, struct in6_addr *daddr,
ndpi_protocol *ret) { ndpi_protocol *ret) {
@@ -8297,7 +8297,8 @@ static int ndpi_do_guess(struct ndpi_detection_module_struct *ndpi_str, struct n
if(packet->iph) if(packet->iph)
ndpi_fill_ip_protocol_category(ndpi_str, flow, flow->c_address.v4, flow->s_address.v4, ret); ndpi_fill_ip_protocol_category(ndpi_str, flow, flow->c_address.v4, flow->s_address.v4, ret);
else else
ndpi_fill_ip6_protocol_category(ndpi_str, flow, (struct in6_addr *)flow->c_address.v6, (struct in6_addr *)flow->s_address.v6, ret); ndpi_fill_ipv6_protocol_category(ndpi_str, flow, (struct in6_addr *)flow->c_address.v6,
(struct in6_addr *)flow->s_address.v6, ret);
flow->guessed_header_category = ret->category; flow->guessed_header_category = ret->category;
} else } else
flow->guessed_header_category = NDPI_PROTOCOL_CATEGORY_UNSPECIFIED; flow->guessed_header_category = NDPI_PROTOCOL_CATEGORY_UNSPECIFIED;