From 9e0f7acfe5d7529cf65d86cfd229780aca8c3694 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 16 Jun 2019 07:06:49 +0200 Subject: Kernel+Userland: Expose list of network adapters through /proc/netadapters. Added a simple /bin/ifconfig program that just pretty-prints that file. :^) --- Kernel/Net/E1000NetworkAdapter.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Kernel/Net/E1000NetworkAdapter.cpp') diff --git a/Kernel/Net/E1000NetworkAdapter.cpp b/Kernel/Net/E1000NetworkAdapter.cpp index fcfaa48e6b..356b1c5f50 100644 --- a/Kernel/Net/E1000NetworkAdapter.cpp +++ b/Kernel/Net/E1000NetworkAdapter.cpp @@ -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); -- cgit v1.2.3