Re: per flow stats collection using libnetfilter_conntrack

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/27/2017 05:12 PM, Florian Westphal wrote:
Tarun Khanna <tkhanna@xxxxxxxxxx> 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
trigger too often).

I was hoping if there was an option to set a timeout, so that an update would trigger every 5 seconds for flows where the counters have changed.


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.
No.  What semantics would you be interested in?

Dumping is quite fast, whats the problem you need to solve?
I have an application that needs to keep track of per flow stats for all tcp flows destined to port 80. The best way I have found so far is to call nfct_query regularly and to go through each flow returned to retrieve the counters. Would that be the best way to do it?

Thank you for your assistance.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux