]> git.ipfire.org Git - people/ms/suricata.git/commit
pkt acq: introduce break loop API
authorcardigliano <cardigliano@ntop.org>
Tue, 20 Oct 2015 16:24:25 +0000 (18:24 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Mar 2016 12:45:57 +0000 (13:45 +0100)
commit57e0bd39e91f4edb72fb7be78d5c40682a188475
tree1c66e46e6b12d6445e8401185995281c96fb476c
parent5d34ac071d049d5b467fe472d7ddf1be6bd6bf9f
pkt acq: introduce break loop API

This patch adds a new callback PktAcqBreakLoop() in TmModule to let
packet acquisition modules define "break-loop" functions to terminate
the capture loop. This is useful in case of blocking functions that
need special actions to take place in order to stop the execution.

Implement this for PF_RING
14 files changed:
src/source-af-packet.c
src/source-erf-dag.c
src/source-erf-file.c
src/source-ipfw.c
src/source-mpipe.c
src/source-napatech.c
src/source-netmap.c
src/source-nflog.c
src/source-nfq.c
src/source-pcap-file.c
src/source-pcap.c
src/source-pfring.c
src/tm-modules.h
src/tm-threads.c