mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Removed print statement.
This commit is contained in:
@@ -201,7 +201,6 @@ BaseSniffer::iterator BaseSniffer::end() {
|
|||||||
bool BaseSniffer::set_filter(const std::string &filter) {
|
bool BaseSniffer::set_filter(const std::string &filter) {
|
||||||
bpf_program prog;
|
bpf_program prog;
|
||||||
if(pcap_compile(handle, &prog, filter.c_str(), 0, mask) == -1) {
|
if(pcap_compile(handle, &prog, filter.c_str(), 0, mask) == -1) {
|
||||||
std::cout << pcap_geterr(handle) << std::endl;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
bool result = pcap_setfilter(handle, &prog) != -1;
|
bool result = pcap_setfilter(handle, &prog) != -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user