Re: per flow stats collection using libnetfilter_conntrack

2017-03-09 Thread Tarun Khanna
Tarun Khanna wrote: On 02/27/2017 05:12 PM, Florian Westphal wrote: Tarun Khanna wrote: Is it possible to register for callbacks so that a user application is updated on a regular basis when the packet or bytes counts change for flows? No, update to packet/byte count doesn't trigg

Re: Question about getting counters for transparent terminated flows

2017-03-09 Thread Tarun Khanna
Tarun Khanna wrote: I have an application that acts as a transparent proxy for tcp flows. I need to get packet and byte counters for these tcp flows on both sides of the proxy application. I looked at pulling the counters from the kernel using libnetfilter_conntrack. However I noticed that

Question about getting counters for transparent terminated flows

2017-03-08 Thread Tarun Khanna
Hi, I have an application that acts as a transparent proxy for tcp flows. I need to get packet and byte counters for these tcp flows on both sides of the proxy application. I looked at pulling the counters from the kernel using libnetfilter_conntrack. However I noticed that the conntrack libr

Re: per flow stats collection using libnetfilter_conntrack

2017-02-27 Thread Tarun Khanna
On 02/27/2017 05:12 PM, Florian Westphal wrote: Tarun Khanna wrote: Is it possible to register for callbacks so that a user application is updated on a regular basis when the packet or bytes counts change for flows? No, update to packet/byte count doesn't trigger an event (it would tr

per flow stats collection using libnetfilter_conntrack

2017-02-27 Thread Tarun Khanna
Is it possible to register for callbacks so that a user application is updated on a regular basis when the packet or bytes counts change for flows? I can poll the stats using something similar to "conntrack -L". However, I was wondering if it's possible to be notified regularly on updates. --