Kernel: Implement link status in /proc/net/adapters

This commit is contained in:
Conrad Pankoff 2019-08-22 00:52:50 +10:00 committed by Andreas Kling
parent af840af1ce
commit 286bafbb19
Notes: sideshowbarker 2024-07-19 12:34:39 +09:00
4 changed files with 19 additions and 0 deletions

View file

@ -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>();