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/protocols/bittorrent.c | |
parent | ac90b1f00910a33d9104d0470429bb8244a49cc9 (diff) |
Keep separating public and private API (#2157)
See: b08c787fe
Diffstat (limited to 'src/lib/protocols/bittorrent.c')
-rw-r--r-- | src/lib/protocols/bittorrent.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |