mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-06 13:35:03 +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:
committed by
Gunnar Beutner
parent
59fdeec7f5
commit
32c8d35ef0
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user