From 6cc480fc092fb1fb0dae947435f9f6d1319338ed Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Tue, 24 Aug 2010 00:07:27 -0400 Subject: [PATCH] Additional tests cases for test_addr.c On platform where we build our own inet_ntop(), exercise it a bit more. Specifically for zero string compression of IPv6 addresses. --- lib/krb5/test_addr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/krb5/test_addr.c b/lib/krb5/test_addr.c index 6e972c949..9d9b603a9 100644 --- a/lib/krb5/test_addr.c +++ b/lib/krb5/test_addr.c @@ -210,7 +210,10 @@ main(int argc, char **argv) check_truncation(context, "IPv4:127.0.0.0"); check_truncation(context, "RANGE:IPv4:127.0.0.0-IPv4:127.0.0.255"); #ifdef HAVE_IPV6 + check_truncation(context, "IPv6:::"); check_truncation(context, "IPv6:::1"); + check_truncation(context, "IPv6:fe80:9:c3e:0:209:6bff:fea0:e522"); + check_truncation(context, "IPv6:fe80::209:0:0:0"); check_truncation(context, "IPv6:fe80::ffff:ffff:ffff:ffff"); #endif -- 2.11.4.GIT