mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
Kernel+ifconfig: Add an MTU value to NetworkAdapter
This defaults to 1500 for all adapters, but LoopbackAdapter increases it to 65536 on construction. If an IPv4 packet is larger than the MTU, we'll need to break it into smaller fragments before transmitting it. This part is a FIXME. :^)
This commit is contained in:
@@ -11,6 +11,7 @@ LoopbackAdapter& LoopbackAdapter::the()
|
||||
LoopbackAdapter::LoopbackAdapter()
|
||||
{
|
||||
set_interface_name("loop");
|
||||
set_mtu(65536);
|
||||
}
|
||||
|
||||
LoopbackAdapter::~LoopbackAdapter()
|
||||
|
||||
Reference in New Issue
Block a user