aboutgitcodebugslistschat
path: root/tcp_splice.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-17 16:58:58 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-11-25 01:35:39 +0100
commit7114fc92eb2d32251c9f21c56572a4e7cb1f1254 (patch)
treee67618ba899700e41cec4e92a5a914555caf6e76 /tcp_splice.c
parenteb050b5a192c82ef659d738f6dbdf63b694d8cf3 (diff)
downloadpasst-7114fc92eb2d32251c9f21c56572a4e7cb1f1254.tar
passt-7114fc92eb2d32251c9f21c56572a4e7cb1f1254.tar.gz
passt-7114fc92eb2d32251c9f21c56572a4e7cb1f1254.tar.bz2
passt-7114fc92eb2d32251c9f21c56572a4e7cb1f1254.tar.lz
passt-7114fc92eb2d32251c9f21c56572a4e7cb1f1254.tar.xz
passt-7114fc92eb2d32251c9f21c56572a4e7cb1f1254.tar.zst
passt-7114fc92eb2d32251c9f21c56572a4e7cb1f1254.zip
tcp: Simplify tcp_hash_match() to take an inany_addr
tcp_hash_match() can take either an IPv4 (struct in_addr) or IPv6 (struct in6_addr) address. It has two different paths for each of those cases. However, its only caller has already constructed an equivalent inany representation of the address, so we can have tcp_hash_match take that directly and use a simpler comparison with the inany_equals() helper. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_splice.c')
0 files changed, 0 insertions, 0 deletions