diff options
author | Laurent Vivier <lvivier@redhat.com> | 2023-12-04 17:44:12 +0100 |
---|---|---|
committer | Laurent Vivier <lvivier@redhat.com> | 2024-03-12 10:54:16 +0100 |
commit | 9cc20cbdb1c5356f1276a3a54f67a0b9ee01c065 (patch) | |
tree | 1c082b3b88d219eebf7c09f73f97e92605b04448 /tcp_buf.h | |
parent | c38f2608202c96a4b0850eb09460efe5467f3968 (diff) | |
download | passt-9cc20cbdb1c5356f1276a3a54f67a0b9ee01c065.tar passt-9cc20cbdb1c5356f1276a3a54f67a0b9ee01c065.tar.gz passt-9cc20cbdb1c5356f1276a3a54f67a0b9ee01c065.tar.bz2 passt-9cc20cbdb1c5356f1276a3a54f67a0b9ee01c065.tar.lz passt-9cc20cbdb1c5356f1276a3a54f67a0b9ee01c065.tar.xz passt-9cc20cbdb1c5356f1276a3a54f67a0b9ee01c065.tar.zst passt-9cc20cbdb1c5356f1276a3a54f67a0b9ee01c065.zip |
tcp: move buffers management functions to their own file
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Diffstat (limited to 'tcp_buf.h')
-rw-r--r-- | tcp_buf.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tcp_buf.h b/tcp_buf.h new file mode 100644 index 0000000..d230312 --- /dev/null +++ b/tcp_buf.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later + * Copyright (c) 2021 Red Hat GmbH + * Author: Stefano Brivio <sbrivio@redhat.com> + */ + +#ifndef TCP_BUF_H +#define TCP_BUF_H + +void tcp_buf_sock4_iov_init(const struct ctx *c); +void tcp_buf_sock6_iov_init(const struct ctx *c); +void tcp_buf_l2_flags_flush(const struct ctx *c); +void tcp_buf_l2_data_flush(const struct ctx *c); +uint16_t tcp_buf_conn_tap_mss(const struct tcp_tap_conn *conn); +int tcp_buf_data_from_sock(struct ctx *c, struct tcp_tap_conn *conn); +int tcp_buf_send_flag(struct ctx *c, struct tcp_tap_conn *conn, int flags); + +#endif /*TCP_BUF_H */ |