summaryrefslogtreecommitdiff
path: root/src/tests/nflog-e.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/nflog-e.sh')
-rw-r--r--src/tests/nflog-e.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/nflog-e.sh b/src/tests/nflog-e.sh
new file mode 100644
index 0000000..00ac4fd
--- /dev/null
+++ b/src/tests/nflog-e.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# NFLOG support depends on both DLT_NFLOG and working <pcap/nflog.h>
+
+if grep '^#define HAVE_PCAP_NFLOG_H 1$' ../config.h >/dev/null
+then
+ ./TESTonce nflog-e nflog.pcap nflog-e.out '-t -e'
+else
+ printf ' %-30s: TEST SKIPPED (compiled w/o NFLOG)\n' 'nflog-e'
+fi