aboutgitcodebugslistschat
path: root/siphash.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-17 16:58:57 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-11-25 01:35:36 +0100
commiteb050b5a192c82ef659d738f6dbdf63b694d8cf3 (patch)
tree5c22979dc84a748711a91c64097a823439bc9023 /siphash.c
parent685f97b8de9ebf2d959433b67aa2821364a6f7f6 (diff)
downloadpasst-eb050b5a192c82ef659d738f6dbdf63b694d8cf3.tar
passt-eb050b5a192c82ef659d738f6dbdf63b694d8cf3.tar.gz
passt-eb050b5a192c82ef659d738f6dbdf63b694d8cf3.tar.bz2
passt-eb050b5a192c82ef659d738f6dbdf63b694d8cf3.tar.lz
passt-eb050b5a192c82ef659d738f6dbdf63b694d8cf3.tar.xz
passt-eb050b5a192c82ef659d738f6dbdf63b694d8cf3.tar.zst
passt-eb050b5a192c82ef659d738f6dbdf63b694d8cf3.zip
tcp: Take tcp_hash_insert() address from struct tcp_conn
tcp_hash_insert() takes an address to control which hash bucket the connection will go into. However, an inany_addr representation of that address is already stored in struct tcp_conn. Now that we've made the hashing of IPv4 and IPv4-mapped IPv6 addresses equivalent, we can simplify tcp_hash_insert() to use the address in struct tcp_conn, rather than taking it as an extra parameter. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'siphash.c')
0 files changed, 0 insertions, 0 deletions