diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-11-27 14:54:09 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-11-28 14:03:16 +0100 |
commit | a6348cad51398346b1ce1009be87a718b8f72bba (patch) | |
tree | 614b4a482354552cc752ef3a461c052765237d9b /pasta.c | |
parent | 2abf5ab7f3734eae9377cfab4759ae83fabf3a7e (diff) | |
download | passt-a6348cad51398346b1ce1009be87a718b8f72bba.tar passt-a6348cad51398346b1ce1009be87a718b8f72bba.tar.gz passt-a6348cad51398346b1ce1009be87a718b8f72bba.tar.bz2 passt-a6348cad51398346b1ce1009be87a718b8f72bba.tar.lz passt-a6348cad51398346b1ce1009be87a718b8f72bba.tar.xz passt-a6348cad51398346b1ce1009be87a718b8f72bba.tar.zst passt-a6348cad51398346b1ce1009be87a718b8f72bba.zip |
tcp: Merge tcp_fill_headers[46]() with each other
We have different versions of this function for IPv4 and IPv6, but the
caller already requires some IP version specific code to get the right
header pointers. Instead, have a common function that fills either an
IPv4 or an IPv6 header based on which header pointer it is passed. This
allows us to remove a small amount of code duplication and make a few
slightly ugly conditionals.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'pasta.c')
0 files changed, 0 insertions, 0 deletions