netfilter: xt_qtaguid: extend iface stat to report protocols
authorJP Abgrall <jpa@google.com>
Wed, 30 Jan 2013 03:29:35 +0000 (19:29 -0800)
committerJP Abgrall <jpa@google.com>
Wed, 30 Jan 2013 03:29:35 +0000 (19:29 -0800)
commit3a2639c90e120f17c7280ad90dff9361374d756f
tree845621b691a5a557016f7d3f6c448bb9a482b76f
parentffe51fe6c4a519edcb149490593f3a27ffb5e6ec
netfilter: xt_qtaguid: extend iface stat to report protocols

In the past the iface_stat_fmt would only show global bytes/packets
for the skb-based numbers.
For stall detection in userspace, distinguishing tcp vs other protocols
makes it easier.
Now we report
  ifname total_skb_rx_bytes total_skb_rx_packets total_skb_tx_bytes
  total_skb_tx_packets {rx,tx}_{tcp,udp,ohter}_{bytes,packets}

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