mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 19:35:09 +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:
parent
70fadbad37
commit
75ed262fe5
5 changed files with 18 additions and 4 deletions
|
@ -11,6 +11,7 @@ LoopbackAdapter& LoopbackAdapter::the()
|
|||
LoopbackAdapter::LoopbackAdapter()
|
||||
{
|
||||
set_interface_name("loop");
|
||||
set_mtu(65536);
|
||||
}
|
||||
|
||||
LoopbackAdapter::~LoopbackAdapter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue