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
commit 9e0f7acfe5
Notes: sideshowbarker 2024-07-19 13:35:20 +09:00
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);