From 6d6289f0fb3b07b0d1a02f671df6b096318d4a4c Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sat, 6 Jul 2024 20:46:22 +0200 Subject: Kernel: Add queue syscall and improve TCP --- kernel/socket.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kernel/socket.h') diff --git a/kernel/socket.h b/kernel/socket.h index bba63c5..35074a1 100644 --- a/kernel/socket.h +++ b/kernel/socket.h @@ -5,8 +5,8 @@ typedef int socklen_t; #include #include #include -#include #include +#include #include #include #include @@ -71,7 +71,7 @@ struct TcpConnection { u32 snd_max; u32 snd_wnd; - struct list incoming_connections; + struct relist incoming_connections; }; struct TcpConnection *tcp_find_connection(ipv4_t src_ip, u16 src_port, @@ -150,4 +150,5 @@ int setsockopt(int socket, int level, int option_name, const void *option_value, void tcp_remove_connection(struct TcpConnection *con); void tcp_flush_acks(void); void tcp_flush_buffers(void); +void tcp_strip_connection(struct TcpConnection *con); #endif -- cgit v1.2.3