netfilter: xt_qtaguid: extend iface stat to report protocols
authorJP Abgrall <jpa@google.com>
Tue, 29 Jan 2013 00:50:44 +0000 (16:50 -0800)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 21:16:20 +0000 (14:16 -0700)
commit976645097762fdb75729e6e3b6d6e5b7d1f81781
tree2bc1ac1a569fa3aa6d3ad5702f862c752f33b319
parentaa74ef088598dd9b78d6731caa21c6f0c0c58fae
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>
net/netfilter/xt_qtaguid.c
net/netfilter/xt_qtaguid_internal.h
net/netfilter/xt_qtaguid_print.c