From cae3ce9e1c141f47a31221c40a7f552af9fd6613 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 26 Mar 2016 19:56:00 +0100 Subject: [PATCH] netmap: implement capture inject packet flag --- src/source-netmap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/source-netmap.c b/src/source-netmap.c index f55ac86bc8..75f8d5d815 100644 --- a/src/source-netmap.c +++ b/src/source-netmap.c @@ -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; } -- 2.47.2