netfilter: xt_qtaguid: provide an iface_stat_all proc entry
authorJP Abgrall <jpa@google.com>
Tue, 20 Sep 2011 05:54:51 +0000 (22:54 -0700)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:24:18 +0000 (12:24 -0800)
commit8d58bfb46490de22317aa0ec1f018084db8c7fbf
treeee86878c214287d886440f62969990fc69f57af5
parentdc1e51b0f759c11383969c8d82ac8ede2a830a1d
netfilter: xt_qtaguid: provide an iface_stat_all proc entry

There is a
  /proc/net/xt_qtaguid/iface/<iface>/{rx_bytes,rx_packets,tx_bytes,...}
but for better convenience and to avoid getting overly stale net/dev stats
we now have
  /proc/net/xt_qtaguid/iface_stat_all
which outputs lines of:
  iface_name active rx_bytes rx_packets tx_bytes tx_packets
    net_dev_rx_bytes net_dev_rx_packets net_dev_tx_bytes net_dev_tx_packets

Change-Id: I12cc10d2d123b86b56d4eb489b1d77b2ce72ebcf
Signed-off-by: JP Abgrall <jpa@google.com>
net/netfilter/xt_qtaguid.c
net/netfilter/xt_qtaguid_internal.h
net/netfilter/xt_qtaguid_print.c