Kernel: Rewrite a lot of TCP code and implement TCP server sockets

TCP stack is now implemented much closer to spec
This commit is contained in:
2024-06-20 13:26:50 +03:00
parent 30fdc2198f
commit 4f0457a268
8 changed files with 484 additions and 336 deletions

View File

@@ -34,7 +34,7 @@ namespace Kernel
virtual void add_protocol_header(BAN::ByteSpan packet, uint16_t dst_port, PseudoHeader) = 0;
virtual NetworkProtocol protocol() const = 0;
virtual void receive_packet(BAN::ConstByteSpan, const sockaddr_storage& sender) = 0;
virtual void receive_packet(BAN::ConstByteSpan, const sockaddr* sender, socklen_t sender_len) = 0;
bool is_bound() const { return m_interface != nullptr; }