summaryrefslogtreecommitdiff
path: root/kernel/socket.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-11 13:33:01 +0200
committerAnton Kling <anton@kling.gg>2024-06-11 15:18:40 +0200
commitabf9cf5bec2712465400417cc8232fee2d1cce28 (patch)
tree3e43f9cc8e194aa20de6e2e5a1916a10ced69f44 /kernel/socket.h
parentb118759096ef08bfcc003933059de46a7a964ad7 (diff)
TCP stuff
Diffstat (limited to 'kernel/socket.h')
-rw-r--r--kernel/socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/socket.h b/kernel/socket.h
index ef5863d..f41e9a1 100644
--- a/kernel/socket.h
+++ b/kernel/socket.h
@@ -5,6 +5,7 @@ typedef int socklen_t;
#include <fs/fifo.h>
#include <fs/vfs.h>
#include <lib/buffered_write.h>
+#include <lib/relist.h>
#include <lib/ringbuffer.h>
#include <lib/stack.h>
#include <stddef.h>
@@ -51,9 +52,14 @@ struct TcpConnection {
struct ringbuffer incoming_buffer;
struct ringbuffer outgoing_buffer;
+ struct relist inflight;
+
int no_delay;
+ u32 current_window_size;
+ u32 window_size;
u32 seq;
+ u32 seq_ack;
u32 ack;
int handshake_state;