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

Error when create object from Sniffer class. #390

Open
BugsBountyHunter opened this issue Feb 23, 2020 · 0 comments
Open

Error when create object from Sniffer class. #390

BugsBountyHunter opened this issue Feb 23, 2020 · 0 comments

Comments

@BugsBountyHunter
Copy link

I have a problem when creating an object from Sniffer class throw exception
this my code

    NetworkInterface iface = NetworkInterface::default_interface();
SnifferConfiguration config;
config.set_promisc_mode(true);
Sniffer sniffer(iface.name()); //this is where it throws Tins::pcap_error
sniffer.sniff_loop(test);

I try this solution but not work

https://groups.google.com/forum/#!searchin/libtins/sniffer|sort:date/libtins/cjsH-CHyeqo/zDKVZsW6BgAJ

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

No branches or pull requests

1 participant