1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00

Kernel: Use a public member for NetworkAdapter on_receive

This commit is contained in:
Conrad Pankoff 2019-08-28 22:14:38 +10:00 committed by Andreas Kling
parent 6d1418aa7a
commit 498f8c01a2
3 changed files with 5 additions and 6 deletions

View file

@ -88,8 +88,8 @@ void NetworkAdapter::did_receive(const u8* data, int length)
m_packets_in++;
m_bytes_in += length;
m_packet_queue.append(KBuffer::copy(data, length));
if (m_on_receive)
m_on_receive();
if (on_receive)
on_receive();
}
Optional<KBuffer> NetworkAdapter::dequeue_packet()