mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-22 02:38:59 +00:00
Handles custom n2disk instances with ZMQ interfaces
This commit is contained in:
parent
5cf98e0b4b
commit
cea9ea8ec5
4 changed files with 33 additions and 26 deletions
|
|
@ -48,8 +48,10 @@ void PacketDumper::init(NetworkInterface *i) {
|
|||
num_bytes_cur_file = 0;
|
||||
out_path = NULL;
|
||||
|
||||
if (strcmp(name, "lo") == 0)
|
||||
if(strcmp(name, "lo") == 0)
|
||||
iface_type = DLT_NULL;
|
||||
else if(!i->isPacketInterface())
|
||||
iface_type = DLT_EN10MB;
|
||||
else
|
||||
iface_type = i->get_datalink();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue