This patch set add a statistics interface for each device so clients can be notified of current network activity. This happens by PropertiesChanged signals, which are generated when the measured magnitudes change, with a minimum time between signals determined by the RefreshRateMs property. Also, when this property is set to zero, the interface gets deactivated and no more signals are generated.
This is a second take after addressing most of the comments. The underlaying mechanism used to track activity is netlink routing sockets. For the moment, TxBytes and RxBytes are the only magnitudes measured. Alfonso Sanchez-Beato (3): exported-object: allow exporting multiple ifaces device: add statistics interface auth: check when setting statistics refresh rate clients/cli/general.c | 2 + introspection/Makefile.am | 6 +- introspection/nm-device-statistics.xml | 43 ++++ libnm-core/nm-dbus-interface.h | 1 + libnm/nm-client.h | 5 +- libnm/nm-manager.c | 2 + shared/nm-common-macros.h | 1 + src/Makefile.am | 2 + src/devices/nm-device-private.h | 3 + src/devices/nm-device-statistics.c | 401 +++++++++++++++++++++++++++++++++ src/devices/nm-device-statistics.h | 33 +++ src/devices/nm-device.c | 112 ++++++++- src/devices/nm-device.h | 4 + src/nm-audit-manager.h | 1 + src/nm-exported-object.c | 18 +- src/nm-manager.c | 10 + 16 files changed, 633 insertions(+), 11 deletions(-) create mode 100644 introspection/nm-device-statistics.xml create mode 100644 src/devices/nm-device-statistics.c create mode 100644 src/devices/nm-device-statistics.h -- 2.7.4 _______________________________________________ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list