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

Packets unread on exit #92

Open
jonschipp opened this Issue Sep 23, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@jonschipp
Contributor

jonschipp commented Sep 23, 2013

I have been encountering a repeatable issue between the latest netsniff-ng and an
older one using TPACKET_V2 (git checkout -b beforev3 11eb8de)

The issue is that for the latest is that there's always n number of packets unread on exit. Though, no matter how long I wait after all the traffic has been sent that number does not decrease.

I have a screenshot attached. For the test I sent 100 mio packets of size 64.
FYI: The extra 2 or 3 packets shown that pass the filter is that issue I reported where netsniff-ng is picking up extra packets from eth0.

compare

I have another screenshot showing how the latest netsniff-ng is having the same problem where 3 different runs ends up having the same number of packets not written to disk i.e. 294 unread on exit. Also note that the ring sizes should have been able to fit all 15000000 * 64 byte packets (915MiB) i.e.
$ echo $((15000000 * 64 / 1048576))
915

latest-unread

@jonschipp jonschipp closed this Sep 23, 2013

@jonschipp jonschipp reopened this Sep 23, 2013

@jonschipp

This comment has been minimized.

Show comment
Hide comment
@jonschipp

jonschipp Sep 23, 2013

Contributor

Sorry, accidentally close. Reopened now.

Contributor

jonschipp commented Sep 23, 2013

Sorry, accidentally close. Reopened now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment