1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:37:35 +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

@ -107,6 +107,9 @@ E1000NetworkAdapter::E1000NetworkAdapter(PCI::Address pci_address, byte irq)
, m_pci_address(pci_address)
{
s_the = this;
set_interface_name("e1k");
kprintf("E1000: Found at PCI address %b:%b:%b\n", pci_address.bus(), pci_address.slot(), pci_address.function());
enable_bus_mastering(m_pci_address);