]> git.ipfire.org Git - thirdparty/suricata.git/commit
Fix pfring so that zero-copy mode can work. 717/head
authorKen Steele <ken@tilera.com>
Mon, 11 Nov 2013 18:11:39 +0000 (13:11 -0500)
committerKen Steele <ken@tilera.com>
Wed, 11 Dec 2013 18:16:07 +0000 (13:16 -0500)
commit882d98733fb7f267d7d022c671b9c9a6c9a55c7a
treebe4b4dd33644a77bb2d8c3f408cdc512cbad1be3
parentf9705377ae9ba88a0563a4984561abfaddf14074
Fix pfring so that zero-copy mode can work.

Detect when default_packet_size is zero, which enables zero-copy mode for
pfring and in that case, do what AF Packet does and set pkt_ext pointer to
the data and set PKT_ZERO_COPY flag.
src/detect.c
src/source-pfring.c