mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 23:09:08 +00:00
Kernel: Implement link status in /proc/net/adapters
This commit is contained in:
parent
af840af1ce
commit
286bafbb19
Notes:
sideshowbarker
2024-07-19 12:34:39 +09:00
Author: https://github.com/deoxxa
Commit: 286bafbb19
Pull-request: https://github.com/SerenityOS/serenity/pull/475
4 changed files with 19 additions and 0 deletions
|
@ -318,6 +318,7 @@ Optional<KBuffer> procfs$net_adapters(InodeIdentifier)
|
|||
obj.set("bytes_in", adapter.bytes_in());
|
||||
obj.set("packets_out", adapter.packets_out());
|
||||
obj.set("bytes_out", adapter.bytes_out());
|
||||
obj.set("link_up", adapter.link_up());
|
||||
json.append(obj);
|
||||
});
|
||||
return json.serialized<KBufferBuilder>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue