wrap IPv6 test code with HAVE_IPV6

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14705 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-03-31 00:15:32 +00:00
parent 8835d48518
commit 61e8cc87ed

View File

@@ -121,9 +121,11 @@ main(int argc, char **argv)
print_addr(context, "RANGE:127.0.0.0/24");
print_addr(context, "RANGE:IPv4:127.0.0.0-IPv4:127.0.0.255");
print_addr(context, "RANGE:130.237.237.4/29");
#ifdef HAVE_IPV6
print_addr(context, "RANGE:fe80::209:6bff:fea0:e522/64");
print_addr(context, "RANGE:IPv6:fe80::-IPv6:fe80::ffff:ffff:ffff:ffff");
print_addr(context, "RANGE:fe80::-fe80::ffff:ffff:ffff:ffff");
#endif
match_addr(context, "RANGE:127.0.0.0/8", "inet:127.0.0.0", 1);
match_addr(context, "RANGE:127.0.0.0/8", "inet:127.255.255.255", 1);