-
-
Notifications
You must be signed in to change notification settings - Fork 96
Support parsing of concatenated PCAPs #3513
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
Conversation
0442bd0
to
978de0b
Compare
978de0b
to
8368f10
Compare
I know it's still in draft, but some very early testing, some compilation error on my side
|
@netantho fixed now. Turns out GCC treats packed structs differently. |
bdb7c64
to
0736770
Compare
0736770
to
00ce063
Compare
@dominiklohmann this is ready from a functional perspective. I'm still getting hangs in the executor (which you already know). Here's what causes the hang for me: cat tenzir/integration/data/pcap/vlan-* > /tmp/concatenated-trace.pcap
tenzir 'read pcap -e' < /tmp/concatenated-trace.pcap Other than that, it looks like @netantho got this working already. |
This works flawlessly now after c3d4064. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me and this works well in practice now.
Confirming that it works, even another ~30% perf gained with this afternoon's commits. Command tested:
I'm seeing the number of events increased with:
Also seeing expected output with:
|
That was a great perf improvement PR: Seeing 2x improvement on a set of 2-15MB pcap files, and fewer stuck pcap import pipelines (maybe even disappeared at one import thread at a time) |
That should be gone entirely as of c3d4064 which I pushed onto this PR. It was a really stupid regression that I introduced shortly before we released v4.1.0. In hindsight, we probably should add a separate changelog entry to document the bug fix. |
This PR equips the
pcap
parser with the capability to parse a stream of concatenated PCAPS.This means that you can now do the following: