mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
Kernel: Send Fragmented IPv4 packets if payload size > mtu
This adds IPv4 fragmentation, so now we can send huuuuuuge packets properly.
This commit is contained in:
parent
592f218151
commit
b3d7c5d9de
Notes:
sideshowbarker
2024-07-19 07:59:46 +09:00
Author: https://github.com/alimpfard
Commit: b3d7c5d9de
Pull-request: https://github.com/SerenityOS/serenity/pull/1574
Reviewed-by: https://github.com/awesomekling
3 changed files with 70 additions and 2 deletions
|
@ -64,6 +64,7 @@ public:
|
|||
|
||||
void send(const MACAddress&, const ARPPacket&);
|
||||
void send_ipv4(const MACAddress&, const IPv4Address&, IPv4Protocol, const u8* payload, size_t payload_size, u8 ttl);
|
||||
void send_ipv4_fragmented(const MACAddress&, const IPv4Address&, IPv4Protocol, const u8* payload, size_t payload_size, u8 ttl);
|
||||
|
||||
size_t dequeue_packet(u8* buffer, size_t buffer_size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue