Kernel: ARP now replies to requests

This commit is contained in:
2024-02-03 18:04:12 +02:00
parent 3a6d31d3fa
commit 649e9f4500
5 changed files with 154 additions and 56 deletions

View File

@@ -292,7 +292,7 @@ namespace Kernel
break;
ASSERT_LTE((uint16_t)descriptor.length, E1000_RX_BUFFER_SIZE);
NetworkManager::get().on_receive(BAN::ConstByteSpan {
NetworkManager::get().on_receive(*this, BAN::ConstByteSpan {
reinterpret_cast<const uint8_t*>(m_rx_buffer_region->vaddr() + rx_current * E1000_RX_BUFFER_SIZE),
descriptor.length
});