1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 12:44:25 +01:00

Don't use pcap_setdirection on Windows

This commit is contained in:
Matias Fontanini
2016-01-25 12:50:29 -08:00
parent c1e479f523
commit 58e3a7a687

View File

@@ -454,9 +454,12 @@ void SnifferConfiguration::configure_sniffer_post_activation(Sniffer& sniffer) c
throw std::runtime_error("Could not set the filter! ");
}
}
// TODO: see how to actually do this on winpcap
#ifndef _WIN32
if (!sniffer.set_direction(_direction)) {
throw std::runtime_error("Could not set the direction! ");
}
#endif // _WIN32
}
void SnifferConfiguration::set_snap_len(unsigned snap_len)