aboutgitcodebugslistschat
path: root/test/tcp/git:
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2026-05-13 13:52:15 +0200
committerStefano Brivio <sbrivio@redhat.com>2026-05-20 01:21:42 +0200
commit533ef11ecb4edd98c7adad3b51c40fdcc2f0671d (patch)
tree3eac0c9486ad23ac738c6e62f7d0be75f035d27c /test/tcp/git:
parentaa78f63c3c9491a9cad9f3c805a59748bd8c1ae2 (diff)
downloadpasst-533ef11ecb4edd98c7adad3b51c40fdcc2f0671d.tar
passt-533ef11ecb4edd98c7adad3b51c40fdcc2f0671d.tar.gz
passt-533ef11ecb4edd98c7adad3b51c40fdcc2f0671d.tar.bz2
passt-533ef11ecb4edd98c7adad3b51c40fdcc2f0671d.tar.lz
passt-533ef11ecb4edd98c7adad3b51c40fdcc2f0671d.tar.xz
passt-533ef11ecb4edd98c7adad3b51c40fdcc2f0671d.tar.zst
passt-533ef11ecb4edd98c7adad3b51c40fdcc2f0671d.zip
pcap: Pass explicit L2 length to pcap_iov()
With vhost-user multibuffer frames, the iov can be larger than the actual L2 frame. The previous approach of computing L2 length as iov_size() - offset would overcount and write extra bytes into the pcap file. Pass the L2 frame length explicitly to pcap_frame() and pcap_iov(), and write exactly that many bytes instead of the full iov remainder. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Jon Maloy <jmaloy@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/tcp/git:')
0 files changed, 0 insertions, 0 deletions