Mailing List Archive

pf_ring: bug fix (rule inactivity)
Hi Alfredo,

The attached patch includes a fix of a bug that relates to updating the
last time a hash rule was active. I assume that the
pfring_purge_idle_hash_rules()
API doesn't work for this reason.
I also added an enhancement of the API pfring_get_hash_filtering_rule_stats()
to return for how long a hash filtering rule is inactive.
The patch is based on pfring 6.6.0.

Since the fix and the enhancement are pretty short, I put them together in
the same patch.

I'll appreciate getting a feedback on this fix (I already sent it over a
month ago).

Thanks,
Amir
Re: pf_ring: bug fix (rule inactivity) [ In reply to ]
Hi Amir
here you go:

https://github.com/ntop/PF_RING/commit/8d04b242b48902600393e12209a758c4a84ec825

Please send a pull request for the next patch.

Thank you
Alfredo

> On 18 Oct 2017, at 19:38, Amir Kaduri <akaduri75@gmail.com> wrote:
>
> Hi Alfredo,
>
> The attached patch includes a fix of a bug that relates to updating the last time a hash rule was active. I assume that the pfring_purge_idle_hash_rules() API doesn't work for this reason.
> I also added an enhancement of the API pfring_get_hash_filtering_rule_stats() to return for how long a hash filtering rule is inactive.
> The patch is based on pfring 6.6.0.
>
> Since the fix and the enhancement are pretty short, I put them together in the same patch.
>
> I'll appreciate getting a feedback on this fix (I already sent it over a month ago).
>
> Thanks,
> Amir
> <patch_rule_inactivity.txt>_______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc