diff options
author | Laurent Vivier <lvivier@redhat.com> | 2024-09-18 15:13:28 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-09-18 17:15:28 +0200 |
commit | 8f8c4d27eb2e023fd80986d8fdf8a68b37e3877e (patch) | |
tree | 31ff4e4c5c7cc9da2fe6edaa73d62b44a8769c87 /tcp_internal.h | |
parent | 4fe5f4e813b553f4877ffa2b485d941bb9f85ca2 (diff) | |
download | passt-8f8c4d27eb2e023fd80986d8fdf8a68b37e3877e.tar passt-8f8c4d27eb2e023fd80986d8fdf8a68b37e3877e.tar.gz passt-8f8c4d27eb2e023fd80986d8fdf8a68b37e3877e.tar.bz2 passt-8f8c4d27eb2e023fd80986d8fdf8a68b37e3877e.tar.lz passt-8f8c4d27eb2e023fd80986d8fdf8a68b37e3877e.tar.xz passt-8f8c4d27eb2e023fd80986d8fdf8a68b37e3877e.tar.zst passt-8f8c4d27eb2e023fd80986d8fdf8a68b37e3877e.zip |
tcp: Allow checksum to be disabled
We can need not to set TCP checksum. Add a parameter to
tcp_fill_headers4() and tcp_fill_headers6() to disable it.
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 'tcp_internal.h')
-rw-r--r-- | tcp_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tcp_internal.h b/tcp_internal.h index a450d85..de06db1 100644 --- a/tcp_internal.h +++ b/tcp_internal.h @@ -91,7 +91,8 @@ void tcp_rst_do(const struct ctx *c, struct tcp_tap_conn *conn); size_t tcp_l2_buf_fill_headers(const struct tcp_tap_conn *conn, struct iovec *iov, size_t dlen, - const uint16_t *check, uint32_t seq); + const uint16_t *check, uint32_t seq, + bool no_tcp_csum); int tcp_update_seqack_wnd(const struct ctx *c, struct tcp_tap_conn *conn, bool force_seq, struct tcp_info *tinfo); int tcp_prepare_flags(const struct ctx *c, struct tcp_tap_conn *conn, int flags, |