[PATCH 0/5] Add device statistics interface - take 3
- From: Alfonso Sanchez-Beato <alfonso sanchez-beato canonical com>
- To: networkmanager-list gnome org
- Subject: [PATCH 0/5] Add device statistics interface - take 3
- Date: Thu, 4 Aug 2016 16:16:18 +0200
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 third take, which uses now platform facilities instead
of using directly netlink routing sockets. For the moment, TxBytes and
RxBytes are the only magnitudes measured.
Alfonso Sanchez-Beato (5):
exported-object: allow exporting multiple ifaces
platform: Add network statistics
device: add statistics interface
auth: check when setting statistics refresh rate
docs: add device statistics interface
clients/cli/general.c | 2 +
docs/api/Makefile.am | 1 +
docs/api/network-manager-docs.xml | 1 +
introspection/Makefile.am | 6 +-
introspection/nm-device-statistics.xml | 37 +++++++++++
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 | 99 ++++++++++++++++++++++++++++
src/devices/nm-device-statistics.h | 31 +++++++++
src/devices/nm-device.c | 117 +++++++++++++++++++++++++++++++++
src/devices/nm-device.h | 4 ++
src/nm-audit-manager.h | 1 +
src/nm-exported-object.c | 18 ++---
src/nm-manager.c | 10 +++
src/platform/nm-linux-platform.c | 32 +++++++++
src/platform/nm-platform.c | 19 ++++++
src/platform/nm-platform.h | 12 ++++
21 files changed, 394 insertions(+), 10 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]