diff --git a/src/source-netmap.c b/src/source-netmap.c index ec38c1f7a6..48c16fe55d 100644 --- a/src/source-netmap.c +++ b/src/source-netmap.c @@ -294,7 +294,11 @@ static int NetmapOpen(char *ifname, int promisc, NetmapDevice **pdevice, int ver } /* netmap needs all offloading to be disabled */ - (void)GetIfaceOffloading(ifname, 1, 1); + if (LiveGetOffload() == 0) { + (void)GetIfaceOffloading(ifname, 1, 1); + } else { + DisableIfaceOffloading(ifname, 1, 1); + } /* not found, create new record */ pdev = SCMalloc(sizeof(*pdev));