-test for mangle support
authorChristian Grothoff <christian@grothoff.org>
Tue, 21 May 2013 13:01:18 +0000 (13:01 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 21 May 2013 13:01:18 +0000 (13:01 +0000)
src/dns/test_gnunet_dns.sh

index c768dd3180479f057087e16994127f69ffedaaa2..d811ba7d6538de7176dde13eaac6570ff314b285 100755 (executable)
@@ -26,6 +26,11 @@ then
   echo "This test requires nslookup.  Skipping."
   exit 0
 fi
+if ! iptables -t mangle --list &> /dev/null
+then
+  echo "This test requires iptables with 'mangle' support. Skipping."
+fi
+
 export PATH=".:$PATH"
 gnunet-service-dns -c dns.conf &
 gnunet-dns-redirector -c dns.conf -4 127.0.0.1 &