Skip to content
New issue

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

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

Already on GitHub? # to your account

Add FileSniffer constructor with FILE pointer as pcap source #499

Merged
merged 1 commit into from
Apr 30, 2023

Conversation

peckto
Copy link
Contributor

@peckto peckto commented Mar 5, 2023

This PR adds two overloads for the FileSniffer class:

FileSniffer(FILE *fp, const SnifferConfiguration& configuration);
FileSniffer(FILE *fp, const std::string& filter = "");

The possibility of opening a pcap by providing a FILE pointer adds more flexibility, e.g. for working with pipes.

@mfontanini mfontanini merged commit ba0c820 into mfontanini:master Apr 30, 2023
@mfontanini
Copy link
Owner

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants