diff options
author | Thomas Wagenveld <thomas@thomasw.dev> | 2021-07-28 13:22:13 +0200 |
---|---|---|
committer | Gunnar Beutner <gunnar@beutner.name> | 2021-08-03 10:20:51 +0200 |
commit | 32c8d35ef0083033d3d11590ba9cabaf167ab4e9 (patch) | |
tree | e73abb56e35814bbee2d0286c9b701aac319e960 | |
parent | 59fdeec7f5fc671286cc93b134f99dd4a6088aa4 (diff) | |
download | serenity-32c8d35ef0083033d3d11590ba9cabaf167ab4e9.zip |
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.
-rw-r--r-- | Kernel/GlobalProcessExposed.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp index 95cc13eca7..9d31521f70 100644 --- a/Kernel/GlobalProcessExposed.cpp +++ b/Kernel/GlobalProcessExposed.cpp @@ -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(); |