utoni / nDPId

Tiny nDPI based deep packet inspection daemons / toolkit.
GNU General Public License v3.0
66 stars 14 forks source link

Improve collectd example. #33

Closed utoni closed 9 months ago

utoni commented 10 months ago

The current collectd example that can be used together with the exec plugin prints bogus information about flows. This issue is caused by the memset in c-collectd.c:512. The desired behavior should be that the executable does not only print statistics between collectd time intervals and resets them afterwards no matter if the flow is still active (e.g. did neither end nor timed out).

Instead, it should also process idle and end events to validate if a flow is still active and modify the statistics printed to stdout in a proper way.

utoni commented 9 months ago

Fixed with 876aef9