mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Kernel/Net: Make interfaces to have persistent names
There's no good reason to distinguish between network interfaces based on their model. It's probably a good idea to try keep the names more persistent so scripts written for a specific network interface will be useable after hotplug event (or after rebooting with new hardware setup).
This commit is contained in:
parent
1c6d2ff21c
commit
8d0280ca09
Notes:
sideshowbarker
2024-07-18 17:34:11 +09:00
Author: https://github.com/supercomputer7
Commit: 8d0280ca09
Pull-request: https://github.com/SerenityOS/serenity/pull/7364
Reviewed-by: https://github.com/gunnarbeutner
6 changed files with 19 additions and 13 deletions
|
@ -18,7 +18,7 @@ LoopbackAdapter& LoopbackAdapter::the()
|
|||
|
||||
LoopbackAdapter::LoopbackAdapter()
|
||||
{
|
||||
set_interface_name("loop");
|
||||
set_loopback_name();
|
||||
set_mtu(65536);
|
||||
set_mac_address({ 19, 85, 2, 9, 0x55, 0xaa });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue