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)
committermgross <mark.gross@intel.com>
Wed, 9 Nov 2011 20:21:53 +0000 (12:21 -0800)
commitfa9a3979748d9c37b806f8a2ada6ee0ceb9ecd6a
tree165dd326456f554cea7cfeafac5c01a5d1211754
parent212966efa39ffe0622c94237208ae6ac74af8351
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