]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
netmap: implement capture inject packet flag
authorVictor Julien <victor@inliniac.net>
Sat, 26 Mar 2016 18:56:00 +0000 (19:56 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 29 Mar 2016 07:50:55 +0000 (09:50 +0200)
src/source-netmap.c

index f55ac86bc885b9584ad45a742a816392adf656dc..75f8d5d815087d6279ff84f5141604c7fbb09bee 100644 (file)
@@ -901,6 +901,9 @@ static TmEcode ReceiveNetmapLoop(ThreadVars *tv, void *data, void *slot)
             /* no events, timeout */
             SCLogDebug("(%s:%d-%d) Poll timeout", ntv->ifsrc->ifname,
                        ntv->src_ring_from, ntv->src_ring_to);
+
+            /* poll timed out, lets see if we need to inject a fake packet  */
+            TmThreadsCaptureInjectPacket(tv, ntv->slot, NULL);
             continue;
         }