From 7b122f13dbb0bd714b47e1181ba36bfbb3bd7658 Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Sat, 14 Sep 2013 19:36:20 +0200 Subject: tests: move ipv6 detection into NPTest module --- NPTest.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'NPTest.pm') diff --git a/NPTest.pm b/NPTest.pm index c719776a..f14657c1 100644 --- a/NPTest.pm +++ b/NPTest.pm @@ -645,6 +645,16 @@ sub testCmd { return $object; } +# do we have ipv6 +sub has_ipv6 { + # assume ipv6 if a ping6 to labs.consol.de works + `ping6 -c 1 2a03:3680:0:2::21 2>&1`; + if($? == 0) { + return 1; + } + return; +} + 1; # # End of File -- cgit v1.2.3