aboutgitcodebugslistschat
path: root/passt.h
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2024-10-03 16:51:07 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-10-04 14:51:10 +0200
commit3d484aa370902873bd42a434fa856b9ee3eac228 (patch)
treeb5edb661e29539d9c90f3474df4ff23d02ed85fe /passt.h
parente6548c643796f036de83163e395f0efd56da4790 (diff)
downloadpasst-3d484aa370902873bd42a434fa856b9ee3eac228.tar
passt-3d484aa370902873bd42a434fa856b9ee3eac228.tar.gz
passt-3d484aa370902873bd42a434fa856b9ee3eac228.tar.bz2
passt-3d484aa370902873bd42a434fa856b9ee3eac228.tar.lz
passt-3d484aa370902873bd42a434fa856b9ee3eac228.tar.xz
passt-3d484aa370902873bd42a434fa856b9ee3eac228.tar.zst
passt-3d484aa370902873bd42a434fa856b9ee3eac228.zip
tcp: Update TCP checksum using an iovec array
TCP header and payload are supposed to be in the same buffer, and tcp_update_check_tcp4()/tcp_update_check_tcp6() compute the checksum from the base address of the header using the length of the IP payload. In the future (for vhost-user) we need to dispatch the TCP header and the TCP payload through several buffers. To be able to manage that, we provide an iovec array that points to the data of the TCP frame. We provide also an offset to be able to provide an array that contains the TCP frame embedded in an lower level frame, and this offset points to the TCP header inside the iovec array. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'passt.h')
0 files changed, 0 insertions, 0 deletions