From 3b35cb37d9b12d3fe3386e9d3f60ab46076d3fbc Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:13:00 +0100 Subject: Keep separating public and private API (#2157) See: b08c787fe --- src/lib/protocols/bittorrent.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/protocols/bittorrent.c') diff --git a/src/lib/protocols/bittorrent.c b/src/lib/protocols/bittorrent.c index b3838a8dd..2d687654e 100644 --- a/src/lib/protocols/bittorrent.c +++ b/src/lib/protocols/bittorrent.c @@ -108,14 +108,14 @@ u_int32_t make_bittorrent_host_key(struct ndpi_flow_struct *flow, int client, in /* network byte order */ if(flow->is_ipv6) { if(client) - key = ndpi_ip_port_hash_funct(ndpi_quick_hash(flow->c_address.v6, 16), htons(ntohs(flow->c_port) + offset)); + key = ip_port_hash_funct(ndpi_quick_hash(flow->c_address.v6, 16), htons(ntohs(flow->c_port) + offset)); else - key = ndpi_ip_port_hash_funct(ndpi_quick_hash(flow->s_address.v6, 16), flow->s_port); + key = ip_port_hash_funct(ndpi_quick_hash(flow->s_address.v6, 16), flow->s_port); } else { if(client) - key = ndpi_ip_port_hash_funct(flow->c_address.v4, htons(ntohs(flow->c_port) + offset)); + key = ip_port_hash_funct(flow->c_address.v4, htons(ntohs(flow->c_port) + offset)); else - key = ndpi_ip_port_hash_funct(flow->s_address.v4, flow->s_port); + key = ip_port_hash_funct(flow->s_address.v4, flow->s_port); } return key; -- cgit v1.2.3