diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-05-25 05:08:13 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-06-01 10:24:47 +0900 |
commit | a879e1a46eb42b3468ff85c62a3d20582b760be4 (patch) | |
tree | 9e12e9a0c7f5c68d1858096e637808fcb8eb7108 /src/network/networkd-manager.h | |
parent | 94a58cc1f936d8af32d7d20da5259f4c8376c343 (diff) | |
download | systemd-a879e1a46eb42b3468ff85c62a3d20582b760be4.tar.gz |
network: monitor link bit rates
Diffstat (limited to 'src/network/networkd-manager.h')
-rw-r--r-- | src/network/networkd-manager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/network/networkd-manager.h b/src/network/networkd-manager.h index 06fa9d8d32..c816d86d18 100644 --- a/src/network/networkd-manager.h +++ b/src/network/networkd-manager.h @@ -11,6 +11,7 @@ #include "dhcp-identifier.h" #include "hashmap.h" #include "list.h" +#include "time-util.h" #include "networkd-address-pool.h" #include "networkd-link.h" @@ -55,6 +56,13 @@ struct Manager { Set *rules_saved; int sysctl_ipv6_enabled; + + /* For link speed meter*/ + bool use_speed_meter; + sd_event_source *speed_meter_event_source; + usec_t speed_meter_interval_usec; + usec_t speed_meter_usec_new; + usec_t speed_meter_usec_old; }; extern const sd_bus_vtable manager_vtable[]; |