netfilter: qtaguid: add tag delete command, expand stats output.
authorJP Abgrall <jpa@google.com>
Sat, 16 Jul 2011 05:27:28 +0000 (22:27 -0700)
committerJP Abgrall <jpa@google.com>
Fri, 22 Jul 2011 01:04:46 +0000 (18:04 -0700)
commitc477e60b6689d36121f7cabaea449c4014705078
treee3c5cfa0ba6719df014d7fb14c5ff289fbb778ce
parentf0e215b07c40e8fbf4ae842d8b33f4a285c0b3e1
netfilter: qtaguid: add tag delete command, expand stats output.

* Add a new ctrl command to delete stored data.
  d <acct_tag> [<uid>]
The uid will default to the running process's.
The accounting tag can be 0, in which case all counters and socket tags
associated with the uid will be cleared.

* Simplify the ctrl command handling at the expense of duplicate code.
This should make it easier to maintain.

* /proc/net/xt_qtaguid/stats now returns more stats
  idx iface acct_tag_hex uid_tag_int
  {rx,tx}_{bytes,packets}
  {rx,tx}_{tcp,udp,other}_{bytes,packets}
the {rx,tx}_{bytes,packets} are the totals.

* re-tagging will now allow changing the uid.

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