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

Adding packet limit to merged pcap #9

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

AfakTolgi
Copy link
Contributor

Limit the Number of packets in the final merged pcap

Overview:
This PR resolves an issue where the user can limit the number of packets in the final merged pcap without any other command-line utility

Changes Made:

  • Added a new flag -c which takes a positive integer as an argument
  • based on this flag we limit the number of packets that are being written in the final merged pcap

Testing:

  • Unit tests covering new functionality.

@AfakTolgi AfakTolgi mentioned this pull request Jul 3, 2024
Copy link
Owner

@assafmo assafmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this amazing PR! Asked for a few minor changes, but looks very good otherwise ❤️

main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
@AfakTolgi
Copy link
Contributor Author

I updated the review, let me know if it looks good

@assafmo assafmo merged commit 57ae869 into assafmo:master Jul 4, 2024
@assafmo
Copy link
Owner

assafmo commented Jul 4, 2024

Thanks!

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.

2 participants