summaryrefslogtreecommitdiff
path: root/kernel/socket.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-03-17 20:55:34 +0100
committerAnton Kling <anton@kling.gg>2024-03-17 20:55:34 +0100
commit0dccff86e50dfe1555b8bc29862dba2b972a3705 (patch)
tree8d0c354c65278afdc3427bb52e1e63900ccdbc05 /kernel/socket.h
parent2e8b474d4219e7faaac3823e73c8d528c2698a37 (diff)
stuff
Diffstat (limited to 'kernel/socket.h')
-rw-r--r--kernel/socket.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/socket.h b/kernel/socket.h
index 174ceb1..550b62b 100644
--- a/kernel/socket.h
+++ b/kernel/socket.h
@@ -18,7 +18,7 @@
#define MSG_WAITALL 1
-u32 gen_ipv4(u8 i1, u8 i2, u8 i3, u8 i4);
+void gen_ipv4(ipv4_t *ip, u8 i1, u8 i2, u8 i3, u8 i4);
u32 tcp_connect_ipv4(u32 ip, u16 port, int *error);
u32 tcp_listen_ipv4(u32 ip, u16 port, int *error);
@@ -49,6 +49,7 @@ struct TcpConnection {
int handshake_state;
};
+struct TcpConnection *tcp_get_connection(u32 socket, process_t *p);
struct TcpConnection *internal_tcp_incoming(u32 src_ip, u16 src_port,
u32 dst_ip, u16 dst_port);