diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-11-28 13:08:41 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-11-28 14:03:16 +0100 |
commit | 020c8b7127e38872e68bffb30ad388001e088552 (patch) | |
tree | bc4f9ad34ef1909598962b53364a5b972deaf30c /pasta.c | |
parent | d9c0f8eefb0015a5a06c7259666c877fff6fbe92 (diff) | |
download | passt-020c8b7127e38872e68bffb30ad388001e088552.tar passt-020c8b7127e38872e68bffb30ad388001e088552.tar.gz passt-020c8b7127e38872e68bffb30ad388001e088552.tar.bz2 passt-020c8b7127e38872e68bffb30ad388001e088552.tar.lz passt-020c8b7127e38872e68bffb30ad388001e088552.tar.xz passt-020c8b7127e38872e68bffb30ad388001e088552.tar.zst passt-020c8b7127e38872e68bffb30ad388001e088552.zip |
tcp_vu: Compute IPv4 header checksum if dlen changes
In tcp_vu_data_from_sock() we compute IPv4 header checksum only
for the first and the last packets, and re-use the first packet checksum
for all the other packets as the content of the header doesn't change.
It's more accurate to check the dlen value to know if the checksum
should change as dlen is the only information that can change in the
loop.
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'pasta.c')
0 files changed, 0 insertions, 0 deletions