From 0621c44e439bedf034399e1bff139ef506039eba Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 14 Nov 2020 22:27:59 +0100 Subject: Some fixes I WAS BUG-SEARCHING FOR SEVERAL HOURS WHYYYY, WHEEERE, AAAAAH --- kernel/inc/net.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kernel/inc/net.h') diff --git a/kernel/inc/net.h b/kernel/inc/net.h index fe3270b..f9986e0 100644 --- a/kernel/inc/net.h +++ b/kernel/inc/net.h @@ -161,12 +161,13 @@ struct tcp_socket { // TODO: Use actual socket types (stream etc) enum socket_type { S_TCP, S_UDP }; +enum socket_state { S_CONNECTING, S_CONNECTED, S_OPEN, S_CLOSED, S_FAILED }; struct socket { u32 ip_addr; u32 dst_port; u32 src_port; - u32 status; + enum socket_state state; enum socket_type type; u32 bytes_available; u32 bytes_read; -- cgit v1.2.3