diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-10-03 16:51:04 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-10-04 14:50:46 +0200 |
commit | 72e7d3024b037afe2cb00c772eea0807286633bd (patch) | |
tree | fb024c0637e8fa7d8e74fb2564e2e55a401117f7 /conf.c | |
parent | def8acdcd846582df5939446be0d73d50971ab18 (diff) | |
download | passt-72e7d3024b037afe2cb00c772eea0807286633bd.tar passt-72e7d3024b037afe2cb00c772eea0807286633bd.tar.gz passt-72e7d3024b037afe2cb00c772eea0807286633bd.tar.bz2 passt-72e7d3024b037afe2cb00c772eea0807286633bd.tar.lz passt-72e7d3024b037afe2cb00c772eea0807286633bd.tar.xz passt-72e7d3024b037afe2cb00c772eea0807286633bd.tar.zst passt-72e7d3024b037afe2cb00c772eea0807286633bd.zip |
tcp: Use tcp_payload_t rather than tcphdr
As tcp_update_check_tcp4() and tcp_update_check_tcp6() compute the
checksum using the TCP header and the TCP payload, it is clearer
to use a pointer to tcp_payload_t that includes tcphdr and payload
rather than a pointer to tcphdr (and guessing TCP header is
followed by the payload).
Move tcp_payload_t and tcp_flags_t to tcp_internal.h.
(They will be used also by vhost-user).
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'conf.c')
0 files changed, 0 insertions, 0 deletions