aboutgitcodebugslistschat
path: root/test/tcp
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2026-05-13 13:52:17 +0200
committerStefano Brivio <sbrivio@redhat.com>2026-05-20 01:21:51 +0200
commitde6387aa0bed9e01c99e58a0f3e01f617bc7fe33 (patch)
tree6002beb5dba09541787c3833834c2f9b05018b01 /test/tcp
parentd83470f8b149c1108d884648d58fcdacd9ed781c (diff)
downloadpasst-de6387aa0bed9e01c99e58a0f3e01f617bc7fe33.tar
passt-de6387aa0bed9e01c99e58a0f3e01f617bc7fe33.tar.gz
passt-de6387aa0bed9e01c99e58a0f3e01f617bc7fe33.tar.bz2
passt-de6387aa0bed9e01c99e58a0f3e01f617bc7fe33.tar.lz
passt-de6387aa0bed9e01c99e58a0f3e01f617bc7fe33.tar.xz
passt-de6387aa0bed9e01c99e58a0f3e01f617bc7fe33.tar.zst
passt-de6387aa0bed9e01c99e58a0f3e01f617bc7fe33.zip
tcp: Pass explicit data length to tcp_fill_headers()
tcp_fill_headers() computed the TCP payload length from iov_tail_size(), but with vhost-user multibuffer frames, the iov_tail will be larger than the actual data. Pass the data length explicitly so that IP total length, pseudo-header, and checksum computations use the correct value. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Jon Maloy <jmaloy@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp')
0 files changed, 0 insertions, 0 deletions