Not all libpcap copies have the support for NFLOG (added in 2013), thus
only run the test when tcpdump was compiled for it.
m3ua isup.pcap isup.out -t
m3ua-vv isup.pcap isupvv.out -t -vv
-# NFLOG test case
-nflog-e nflog.pcap nflog-e.out -t -e
+# NFLOG test case moved to nflog-e.sh
# syslog test case
syslog-v syslog_udp.pcap syslog-v.out -t -v
--- /dev/null
+#!/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