mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Use a public member for NetworkAdapter on_receive
This commit is contained in:
parent
6d1418aa7a
commit
498f8c01a2
Notes:
sideshowbarker
2024-07-19 12:27:09 +09:00
Author: https://github.com/deoxxa
Commit: 498f8c01a2
Pull-request: https://github.com/SerenityOS/serenity/pull/499
Reviewed-by: https://github.com/awesomekling
3 changed files with 5 additions and 6 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue