1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:58:12 +00:00

Kernel+Userland: Expose list of network adapters through /proc/netadapters.

Added a simple /bin/ifconfig program that just pretty-prints that file. :^)
This commit is contained in:
Andreas Kling 2019-06-16 07:06:49 +02:00
parent 264890bfc3
commit 9e0f7acfe5
6 changed files with 69 additions and 0 deletions

View file

@ -10,6 +10,7 @@ LoopbackAdapter& LoopbackAdapter::the()
LoopbackAdapter::LoopbackAdapter()
{
set_interface_name("loop");
set_ipv4_address({ 127, 0, 0, 1 });
}