]> The Tcpdump Group git mirrors - tcpdump/blob - tests/nflog-e.sh
CVE-2017-13049/Rx: add a missing bounds check for Ubik
[tcpdump] / tests / nflog-e.sh
1 #!/bin/sh
2
3 exitcode=0
4
5 # NFLOG support depends on both DLT_NFLOG and working <pcap/nflog.h>
6
7 if grep '^#define HAVE_PCAP_NFLOG_H 1$' ../config.h >/dev/null
8 then
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
20 else
21 printf ' %-35s: TEST SKIPPED (compiled w/o NFLOG)\n' 'nflog-e'
22 fi
23
24 exit $exitcode