Handles custom n2disk instances with ZMQ interfaces

This commit is contained in:
Simone Mainardi 2019-01-16 19:29:12 +01:00
parent 5cf98e0b4b
commit cea9ea8ec5
4 changed files with 33 additions and 26 deletions

View file

@ -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();
}