mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

NFQ is the new and improved way to process iptables packets. Snort IPS mode requires this module in some cases. Before the patch: $ snort --daq-list Available DAQ modules: pcap(v3): readback live multi unpriv ipfw(v3): live inline multi unpriv dump(v3): readback live inline multi unpriv afpacket(v5): live inline multi unpriv After the patch: $ snort --daq-list Available DAQ modules: pcap(v3): readback live multi unpriv nfq(v7): live inline multi ipfw(v3): live inline multi unpriv dump(v3): readback live inline multi unpriv afpacket(v5): live inline multi unpriv Also update 0001-correct-the-location-of-unistd.h.patch to fix build with musl. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
49 lines
1.1 KiB
Diff
49 lines
1.1 KiB
Diff
From b7d54de51553f6d09906c355bd0dd326890c8fe4 Mon Sep 17 00:00:00 2001
|
|
From: Khem Raj <raj.khem@gmail.com>
|
|
Date: Wed, 29 Mar 2017 15:59:43 -0700
|
|
Subject: [PATCH] correct the location of unistd.h
|
|
|
|
Upstream-Status: Pending
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
---
|
|
os-daq-modules/daq_ipfw.c | 2 +-
|
|
os-daq-modules/daq_nfq.c | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/os-daq-modules/daq_ipfw.c b/os-daq-modules/daq_ipfw.c
|
|
index 016beb0..c2a4175 100644
|
|
--- a/os-daq-modules/daq_ipfw.c
|
|
+++ b/os-daq-modules/daq_ipfw.c
|
|
@@ -23,10 +23,10 @@
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
+#include <unistd.h>
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
-#include <sys/unistd.h>
|
|
|
|
#include <netinet/in.h>
|
|
#include <sys/socket.h>
|
|
diff --git a/os-daq-modules/daq_nfq.c b/os-daq-modules/daq_nfq.c
|
|
index 33021c0..4de94b6 100644
|
|
--- a/os-daq-modules/daq_nfq.c
|
|
+++ b/os-daq-modules/daq_nfq.c
|
|
@@ -24,10 +24,10 @@
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
+#include <unistd.h>
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/time.h>
|
|
-#include <sys/unistd.h>
|
|
|
|
#include <netinet/ip.h>
|
|
|
|
--
|
|
2.25.1
|
|
|