summaryrefslogtreecommitdiff
path: root/Kernel/Net/E1000NetworkAdapter.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-16 07:06:49 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-16 07:06:49 +0200
commit9e0f7acfe5d7529cf65d86cfd229780aca8c3694 (patch)
treec6b759258f09cb6535b6e471a963a48f1cf18b9d /Kernel/Net/E1000NetworkAdapter.cpp
parent264890bfc3645b044b09e5b908ec60bbd678992c (diff)
downloadserenity-9e0f7acfe5d7529cf65d86cfd229780aca8c3694.zip
Kernel+Userland: Expose list of network adapters through /proc/netadapters.
Added a simple /bin/ifconfig program that just pretty-prints that file. :^)
Diffstat (limited to 'Kernel/Net/E1000NetworkAdapter.cpp')
-rw-r--r--Kernel/Net/E1000NetworkAdapter.cpp3
1 files changed, 3 insertions, 0 deletions
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);