mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
Kernel: Expose link speed and duplex through /proc/net/adapters
Add the fields 'link_speed' (integer or -1) for the speed and 'link_full_duplex' (true for full, false for half) to indicate link duplex.
This commit is contained in:
parent
59fdeec7f5
commit
32c8d35ef0
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,8 @@ private:
|
|||
obj.add("packets_out", adapter.packets_out());
|
||||
obj.add("bytes_out", adapter.bytes_out());
|
||||
obj.add("link_up", adapter.link_up());
|
||||
obj.add("link_speed", adapter.link_speed());
|
||||
obj.add("link_full_duplex", adapter.link_full_duplex());
|
||||
obj.add("mtu", adapter.mtu());
|
||||
});
|
||||
array.finish();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue