diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-03-26 16:42:21 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-03-26 09:51:41 +0100 |
commit | 99355e25b9bd59f0e3d59245e10c765e7edfb213 (patch) | |
tree | 2d575ce360945a8f62da18ef79494a93ee0006bd /checksum.h | |
parent | 71dd405460b7b1251af9a71aa30c74b7d40da1c3 (diff) | |
download | passt-99355e25b9bd59f0e3d59245e10c765e7edfb213.tar passt-99355e25b9bd59f0e3d59245e10c765e7edfb213.tar.gz passt-99355e25b9bd59f0e3d59245e10c765e7edfb213.tar.bz2 passt-99355e25b9bd59f0e3d59245e10c765e7edfb213.tar.lz passt-99355e25b9bd59f0e3d59245e10c765e7edfb213.tar.xz passt-99355e25b9bd59f0e3d59245e10c765e7edfb213.tar.zst passt-99355e25b9bd59f0e3d59245e10c765e7edfb213.zip |
tcp: Split handling of DUP_ACK from ACK
The DUP_ACK flag to tcp_send_flag() has two effects: first it forces the
setting of the ACK flag in the packet, even if we otherwise wouldn't.
Secondly, it causes a duplicate of the flags packet to be sent immediately
after the first.
Setting the ACK flag to tcp_send_flag() also has the first effect, so
instead of having DUP_ACK also do that, pass both flags when we need both
operations. This slightly simplifies the logic of tcp_send_flag() in a way
that makes some future changes easier.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'checksum.h')
0 files changed, 0 insertions, 0 deletions