mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 03:35:09 +00:00
Kernel: Add a simple MACAddress class.
This commit is contained in:
parent
405413c354
commit
4641ee49b5
4 changed files with 32 additions and 8 deletions
|
@ -57,7 +57,7 @@ E1000NetworkAdapter::E1000NetworkAdapter(PCI::Address pci_address, byte irq)
|
|||
detect_eeprom();
|
||||
kprintf("E1000: Has EEPROM? %u\n", m_has_eeprom);
|
||||
read_mac_address();
|
||||
auto* mac = mac_address();
|
||||
const auto& mac = mac_address();
|
||||
kprintf("E1000: MAC address: %b:%b:%b:%b:%b:%b\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
enable_irq();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue