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)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:51:28 +0000 (13:51 -0800)
commit0a0193303020bef11f46a2876a687acf3bce4fe0
tree5bd6c60bb6f5e5a0ecc756506ba2bf6a8c074576
parentd39229d5c136abb749a58d44c292bd385716c3fa
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