Closed chirayu-patel closed 5 years ago
Can anyone update on this plz ??
Can't you just bind it in the callback? The interface is something you provide so you should be able to keep track of it.
Thanks !! That worked .. This is what I used :
string interface(interfaceName); namespace ph = std::placeholders; sniffer.sniff_loop(std::bind(dns_callback_handler,ph::_1,interface));
Is there any way to get access to the interface Name/device name in the sniff loop callback handler ??