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

fix: tcpassembly does not use correct timestamps #277

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

xhantu
Copy link
Contributor

@xhantu xhantu commented Feb 1, 2024

tcpassembly only read the bytes of the reassembled stream and ignored other reassembly information, like seen timestamp. Therefore When assembling a HEP packet it had to use the current time. Because of parallel handling of packet capture, reassembly, and extraction this timestamp could be totally wrong.

The changed code processes the reassembly information directly and uses the timestamp of the part with the begin of the SIP message.

refs: #223

tcpassembly only read the bytes of the reassembled stream and ignored
other reassembly information, like seen timestamp. Therefore When
assembling a HEP packet it had to use the current time. Because of
parallel handling of packet capture, reassembly, and extraction this
timestamp could be totally wrong.

The changed code processes the reassembly information directly and
uses the timestamp of the part with the begin of the SIP message.

refs: sipcapture#223
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


xhantu seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@lmangani
Copy link
Member

lmangani commented Feb 1, 2024

GREAT contribution! Thanks @xhantu 🎉

@lmangani lmangani self-assigned this Feb 1, 2024
@xhantu
Copy link
Contributor Author

xhantu commented Feb 1, 2024

I did not set an email when committing. How do I sign the CLA now that I can not add the email to my account?

@lmangani lmangani removed the request for review from adubovikov February 1, 2024 15:36
@lmangani
Copy link
Member

lmangani commented Feb 1, 2024

Error: decoder/tcpassembly.go:12:2: "github.com/negbie/logp" imported and not used

@lmangani lmangani merged commit 8c1057a into sipcapture:master Feb 1, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants