mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-15 09:40:06 +00:00
Fix for #169
This commit is contained in:
parent
d349830dfc
commit
fa0dd87d29
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,8 @@ PcapInterface::PcapInterface(const char *name) : NetworkInterface(name) {
|
|||
if((pcap_list = fopen(name, "r")) == NULL) {
|
||||
ntop->getTrace()->traceEvent(TRACE_ERROR, "Unable to open file %s", name);
|
||||
_exit(0);
|
||||
}
|
||||
} else
|
||||
read_pkts_from_pcap_dump = true;
|
||||
} else {
|
||||
char *slash = strrchr(ifname, '/');
|
||||
|
||||
|
|
@ -54,7 +55,6 @@ PcapInterface::PcapInterface(const char *name) : NetworkInterface(name) {
|
|||
}
|
||||
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "Reading packets from pcap file %s...", ifname);
|
||||
read_pkts_from_pcap_dump = true;
|
||||
read_pkts_from_pcap_dump = true, purge_idle_flows_hosts = false;
|
||||
pcap_datalink_type = pcap_datalink(pcap_handle);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue