diff options
author | Anton Kling <anton@kling.gg> | 2024-06-26 22:02:16 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-26 22:02:16 +0200 |
commit | 55fef89be9eb9da8b40bfdc1cc20475421ca5554 (patch) | |
tree | 99805aeaf4d525808d042dde4f3cb66ebcd96ce0 /kernel/socket.h | |
parent | fddda835a28bbc52a8d8450395a3e57e181782a8 (diff) |
TCP: Delay ACKs to batch together packets ACKed
Diffstat (limited to 'kernel/socket.h')
-rw-r--r-- | kernel/socket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/socket.h b/kernel/socket.h index 454992c..e881111 100644 --- a/kernel/socket.h +++ b/kernel/socket.h @@ -64,6 +64,8 @@ struct TcpConnection { u32 rcv_nxt; u32 rcv_adv; + int should_send_ack; + u32 snd_una; u32 snd_nxt; u32 snd_max; @@ -142,4 +144,5 @@ u16 tcp_get_free_port(void); int setsockopt(int socket, int level, int option_name, const void *option_value, socklen_t option_len); void tcp_remove_connection(struct TcpConnection *con); +void tcp_flush_acks(void); #endif |