Skip to content

Commit

Permalink
fix pcap_open_live failed error code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyuan-liao committed Nov 15, 2017
1 parent f182c6a commit ba80bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sniffer.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace FeatureExtractor {
int read_timeout = config->get_pcap_read_timeout();
if ((this->handle = pcap_open_live(d->name, SNAPLEN, 1, read_timeout, errbuf)) == NULL)
{
cerr << "Unable to open the adapter. " << d->name << " is not supported by WinPcap" << endl;
cerr << "Unable to open the adapter. " << d->name << errbuf << endl;
pcap_freealldevs(alldevs);
exit(1);
}
Expand Down

0 comments on commit ba80bd3

Please sign in to comment.