mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 09:34:57 +09:00
Kernel: Refactor TCP/IP stack
This has several significant changes to the networking stack. * Significant refactoring of the TCP state machine. Right now it's probably more fragile than it used to be, but handles quite a lot more of the handshake process. * `TCPSocket` holds a `NetworkAdapter*`, assigned during `connect()` or `bind()`, whichever comes first. * `listen()` is now virtual in `Socket` and intended to be implemented in its child classes * `listen()` no longer works without `bind()` - this is a bit of a regression, but listening sockets didn't work at all before, so it's not possible to observe the regression. * A file is exposed at `/proc/net_tcp`, which is a JSON document listing the current TCP sockets with a bit of metadata. * There's an `ETHERNET_VERY_DEBUG` flag for dumping packet's content out to `kprintf`. It is, indeed, _very debug_.
This commit is contained in:
parent
c973a51a23
commit
73c998dbfc
Notes:
sideshowbarker
2024-07-19 12:51:03 +09:00
Author: https://github.com/deoxxa
Commit: 73c998dbfc
Pull-request: https://github.com/SerenityOS/serenity/pull/415
12 changed files with 446 additions and 84 deletions
|
@ -67,6 +67,7 @@ public:
|
|||
}
|
||||
|
||||
in_addr_t to_in_addr_t() const { return m_data_as_u32; }
|
||||
u32 to_u32() const { return m_data_as_u32; }
|
||||
|
||||
bool operator==(const IPv4Address& other) const { return m_data_as_u32 == other.m_data_as_u32; }
|
||||
bool operator!=(const IPv4Address& other) const { return m_data_as_u32 != other.m_data_as_u32; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue