diff options
author | Anton Kling <anton@kling.gg> | 2023-11-01 03:00:00 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-01 03:00:32 +0100 |
commit | f605d8538fde29e29420180746476802f3198144 (patch) | |
tree | 7177db8fe6ccba577e56ae225795168854fa891e /kernel/network/tcp.h | |
parent | ee0b650da5ecf8778de560ee221200fb69beb791 (diff) |
Kernel: Add a simple TCP implementation
Diffstat (limited to 'kernel/network/tcp.h')
-rw-r--r-- | kernel/network/tcp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/network/tcp.h b/kernel/network/tcp.h new file mode 100644 index 0000000..fbd6065 --- /dev/null +++ b/kernel/network/tcp.h @@ -0,0 +1,5 @@ +void handle_tcp(uint8_t src_ip[4], const uint8_t *payload, + uint32_t payload_length); +void send_tcp_packet(struct INCOMING_TCP_CONNECTION *inc, uint8_t *payload, + uint16_t payload_length); +void tcp_close_connection(struct INCOMING_TCP_CONNECTION *s); |