aboutgitcodebugslistschat
path: root/tcp.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-05 19:46:59 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-05 20:02:03 +0200
commita4826ee04b762fded02e5a1551f12f50a1748ac7 (patch)
treea62cdcf719fd771c15991bdf3b73c2cf29f2f874 /tcp.h
parent371667fcfb3f92593358cdfd3cd13b7fb5fe6a29 (diff)
downloadpasst-a4826ee04b762fded02e5a1551f12f50a1748ac7.tar
passt-a4826ee04b762fded02e5a1551f12f50a1748ac7.tar.gz
passt-a4826ee04b762fded02e5a1551f12f50a1748ac7.tar.bz2
passt-a4826ee04b762fded02e5a1551f12f50a1748ac7.tar.lz
passt-a4826ee04b762fded02e5a1551f12f50a1748ac7.tar.xz
passt-a4826ee04b762fded02e5a1551f12f50a1748ac7.tar.zst
passt-a4826ee04b762fded02e5a1551f12f50a1748ac7.zip
tcp: Defer and coalesce all segments with no data (flags) to handler
...using pre-cooked buffers, just like we do with other segments. While at it, remove some code duplication by having separate functions for updating ACK sequence and window, and for filling in buffer headers. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp.h')
-rw-r--r--tcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcp.h b/tcp.h
index ef78b51..f10ba16 100644
--- a/tcp.h
+++ b/tcp.h
@@ -14,6 +14,7 @@ int tcp_tap_handler(struct ctx *c, int af, void *addr,
struct tap_l4_msg *msg, int count, struct timespec *now);
int tcp_sock_init(struct ctx *c, struct timespec *now);
void tcp_timer(struct ctx *c, struct timespec *ts);
+void tcp_defer_handler(struct ctx *c);
void tcp_update_l2_buf(unsigned char *eth_d, unsigned char *eth_s,
uint32_t *ip_da);
void tcp_remap_to_tap(in_port_t port, in_port_t delta);