1#!/bin/sh 2 3exitcode=0 4 5# NFLOG support depends on both DLT_NFLOG and working <pcap/nflog.h> 6 7if grep '^#define HAVE_PCAP_NFLOG_H 1$' ../config.h >/dev/null 8then 9 passed=`cat .passed` 10 failed=`cat .failed` 11 if ./TESTonce nflog-e nflog.pcap nflog-e.out '-e' 12 then 13 passed=`expr $passed + 1` 14 echo $passed >.passed 15 else 16 failed=`expr $failed + 1` 17 echo $failed >.failed 18 exitcode=1 19 fi 20else 21 printf ' %-35s: TEST SKIPPED (compiled w/o NFLOG)\n' 'nflog-e' 22fi 23 24exit $exitcode 25