Kernel: Cleanup TCP and add basic window scaling support

This commit is contained in:
2025-04-01 23:04:59 +03:00
parent 96767f5ca8
commit 36026d4ec6
2 changed files with 17 additions and 13 deletions

View File

@@ -43,7 +43,7 @@ namespace Kernel
class TCPSocket final : public NetworkSocket
{
public:
static constexpr size_t m_tcp_options_bytes = 4;
static constexpr size_t m_tcp_options_bytes = 8;
public:
static BAN::ErrorOr<BAN::RefPtr<TCPSocket>> create(NetworkLayer&, const Info&);
@@ -91,6 +91,7 @@ namespace Kernel
bool has_ghost_byte { false };
uint32_t data_size { 0 }; // number of bytes in this buffer
uint8_t scale { 1 }; // window scale
BAN::UniqPtr<VirtualRange> buffer;
};