Skip to content

Commit

Permalink
fix a problem where the pcap fd/context was set to nonblocking after …
Browse files Browse the repository at this point in the history
…pcap_activate had failed
  • Loading branch information
asmuth authored and Tom Barbette committed Sep 18, 2017
1 parent aa7e85d commit 1907ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elements/userlevel/fromdevice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ FromDevice::open_pcap(String ifname, int snaplen, bool promisc,
if (r < 0) {
errh->error("%s: %s", ifname.c_str(), fetch_pcap_error(p, 0));
pcap_close(p);
p = 0;
return 0;
} else if (r > 0)
errh->warning("%s: %s", ifname.c_str(), fetch_pcap_error(p, 0));

Expand Down

0 comments on commit 1907ba1

Please sign in to comment.