Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit message #748

Closed
wants to merge 4 commits into from
Closed

Exit message #748

wants to merge 4 commits into from

Conversation

regit
Copy link
Contributor

@regit regit commented Dec 31, 2013

Here's a PR which improve the exit message of suricata by adding the packets and drop counters. Two last commits are fixes for the live device counters which were not correctly computed.

PR builds:

Ticket: https://redmine.openinfosecfoundation.org/issues/894

This patch adds a cleaning function to device list. This also
permits to display per-interface statistics during the exit.
This patch updates capture modes not using LiveDecice counters
to display per-thread exit statistics with default verbosity.
Live device counter was in fact the number of packets seen by suricata
and not the total number of packet reported by kernel. This patch fixes
this by using counter provided by kernel instead.
The counter is Clear On Read, so by adding the value fetch at each call
and earch sockets we get the number of packets and drops for the
interface.
Live device counter was in fact the number of packets seen by suricata
and not the total number of packet reported by pfring. This patch fixes
this by using counter provided by kernel instead.

Pfring kernel counter is per socket and is not cleared after read.
So to get the number of packet on the interface we can add the new
value for this thread and add it to the interface counter.
@inliniac inliniac mentioned this pull request Jan 10, 2014
@inliniac
Copy link
Contributor

Merged through #757

@inliniac inliniac closed this Jan 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants