mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 22:44:58 +00:00
Kernel: Implement link status in /proc/net/adapters
This commit is contained in:
parent
af840af1ce
commit
286bafbb19
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