flowtop: Add connection traffic accounting
commit6d2aa3dae7c2dc95f882786f5629dde05b91e5dc
authorVadim Kochan <vadim4j@gmail.com>
Mon, 13 Jul 2015 20:03:07 +0000 (13 23:03 +0300)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 17 Jul 2015 10:03:26 +0000 (17 12:03 +0200)
tree669cc46ae24612171bed699db2ff5c7d4110e109
parentd53674ad684caa3914064a0805c68de8f3b03d4e
flowtop: Add connection traffic accounting

Mark each flow if it is visible on the screen to know if it is needed
update traffic acct info.

Changed to use non blocking recv of nf conntrack events to update
traffic accounting.

Now nf_conntrack is cloned when new flow entry is added to send dump
request which is used to update traffic accounting info (packet, bytes).

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
[tklauser: Formatting changes]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
flowtop.c