From a4826ee04b762fded02e5a1551f12f50a1748ac7 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Tue, 5 Oct 2021 19:46:59 +0200 Subject: 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 --- tcp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tcp.h') 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); -- cgit v1.2.3