summaryrefslogtreecommitdiff
path: root/kernel/socket.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-07-06 20:46:22 +0200
committerAnton Kling <anton@kling.gg>2024-07-06 20:46:22 +0200
commit6d6289f0fb3b07b0d1a02f671df6b096318d4a4c (patch)
tree1d87fcf6374af7d4ab82cb46e1777a2ce1d3b11d /kernel/socket.h
parent8e66b83b705e257b78ec98abdb86e7f8b3b5c775 (diff)
Kernel: Add queue syscall and improve TCP
Diffstat (limited to 'kernel/socket.h')
-rw-r--r--kernel/socket.h5
1 files changed, 3 insertions, 2 deletions
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 <fs/fifo.h>
#include <fs/vfs.h>
#include <lib/buffered_write.h>
-#include <lib/relist.h>
#include <lib/list.h>
+#include <lib/relist.h>
#include <lib/ringbuffer.h>
#include <lib/stack.h>
#include <stddef.h>
@@ -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