diff options
-rw-r--r-- | src/include/ndpi_api.h | 6 | ||||
-rw-r--r-- | src/lib/ndpi_main.c | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index 00d15bbda..34617c535 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -1002,9 +1002,9 @@ extern "C" { u_int32_t saddr, u_int32_t daddr, ndpi_protocol *ret); - int ndpi_fill_ip6_protocol_category(struct ndpi_detection_module_struct *ndpi_str, - struct ndpi_flow_struct *flow, - struct in6_addr *saddr, struct in6_addr *daddr, + int ndpi_fill_ipv6_protocol_category(struct ndpi_detection_module_struct *ndpi_str, + struct ndpi_flow_struct *flow, + struct in6_addr *saddr, struct in6_addr *daddr, ndpi_protocol *ret); int ndpi_match_custom_category(struct ndpi_detection_module_struct *ndpi_struct, char *name, u_int name_len, ndpi_protocol_category_t *id); diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 8f9e0c399..9b873b2d5 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -8067,10 +8067,10 @@ 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, - struct ndpi_flow_struct *flow, - struct in6_addr *saddr, struct in6_addr *daddr, - ndpi_protocol *ret) { +int ndpi_fill_ipv6_protocol_category(struct ndpi_detection_module_struct *ndpi_str, + struct ndpi_flow_struct *flow, + struct in6_addr *saddr, struct in6_addr *daddr, + ndpi_protocol *ret) { bool match_client = true; ret->custom_category_userdata = NULL; @@ -8297,7 +8297,8 @@ static int ndpi_do_guess(struct ndpi_detection_module_struct *ndpi_str, struct n if(packet->iph) ndpi_fill_ip_protocol_category(ndpi_str, flow, flow->c_address.v4, flow->s_address.v4, ret); 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; } else flow->guessed_header_category = NDPI_PROTOCOL_CATEGORY_UNSPECIFIED; |