mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
Kernel: Use a public member for NetworkAdapter on_receive
This commit is contained in:
committed by
Andreas Kling
parent
6d1418aa7a
commit
498f8c01a2
@@ -50,9 +50,9 @@ void NetworkTask_main()
|
||||
adapter.ipv4_netmask().to_string().characters(),
|
||||
adapter.ipv4_gateway().to_string().characters());
|
||||
|
||||
adapter.set_on_receive([&pending_packets]() {
|
||||
adapter.on_receive = [&pending_packets]() {
|
||||
pending_packets++;
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
auto dequeue_packet = [&pending_packets]() -> Optional<KBuffer> {
|
||||
|
||||
Reference in New Issue
Block a user