diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2023-11-29 17:13:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 17:13:00 +0100 |
commit | 3b35cb37d9b12d3fe3386e9d3f60ab46076d3fbc (patch) | |
tree | 3cf19bde0e542ee8bf7467a7d545ff8ebcb8fdab /src/lib/ndpi_utils.c | |
parent | ac90b1f00910a33d9104d0470429bb8244a49cc9 (diff) |
Keep separating public and private API (#2157)
See: b08c787fe
Diffstat (limited to 'src/lib/ndpi_utils.c')
-rw-r--r-- | src/lib/ndpi_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ndpi_utils.c b/src/lib/ndpi_utils.c index 041f9226e..d6f5b7f60 100644 --- a/src/lib/ndpi_utils.c +++ b/src/lib/ndpi_utils.c @@ -271,8 +271,8 @@ u_int8_t ndpi_net_match(u_int32_t ip_to_check, return(((ip_to_check & mask) == (net & mask)) ? 1 : 0); } -u_int8_t ndpi_ips_match(u_int32_t src, u_int32_t dst, - u_int32_t net, u_int32_t num_bits) +u_int8_t ips_match(u_int32_t src, u_int32_t dst, + u_int32_t net, u_int32_t num_bits) { return(ndpi_net_match(src, net, num_bits) || ndpi_net_match(dst, net, num_bits)); } @@ -2635,7 +2635,7 @@ static inline uint16_t get_n16bit(uint8_t const * cbuf) { return r; } -u_int16_t ndpi_calculate_icmp4_checksum(const u_int8_t * buf, size_t len) { +u_int16_t icmp4_checksum(const u_int8_t * buf, size_t len) { u_int32_t checksum = 0; /* @@ -2944,7 +2944,7 @@ u_int8_t ndpi_check_flow_risk_exceptions(struct ndpi_detection_module_struct *nd /* ******************************************* */ -int64_t ndpi_asn1_ber_decode_length(const unsigned char *payload, int payload_len, u_int16_t *value_len) +int64_t asn1_ber_decode_length(const unsigned char *payload, int payload_len, u_int16_t *value_len) { unsigned int value, i; |