From 112fa2f845a4c3036677ae1141bf386e0a143baf Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Sun, 26 Jul 2009 06:27:16 +0200 Subject: [PATCH] Fixes to tests. --- autotest/test_ipfilter.tcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autotest/test_ipfilter.tcc b/autotest/test_ipfilter.tcc index d553f9a..f3cfe6e 100644 --- a/autotest/test_ipfilter.tcc +++ b/autotest/test_ipfilter.tcc @@ -606,13 +606,13 @@ EXO_TEST(ip_range_2, { EXO_TEST(ip_range_3, { struct ip_range range; memset(&range, 0, sizeof(range)); - return ip_convert_address_to_range("192.168.0.0/24", &range) && range.lo.af == range.hi.af && memcmp(&range.lo, &range.hi, sizeof(struct ip_addr_encap)) != 0; + return ip_convert_address_to_range("192.168.0.0/16", &range) && range.lo.af == range.hi.af && memcmp(&range.lo, &range.hi, sizeof(struct ip_addr_encap)) != 0; }); EXO_TEST(ip_range_4, { struct ip_range range1; memset(&range1, 0, sizeof(range1)); struct ip_range range2; memset(&range2, 0, sizeof(range2)); - return ip_convert_address_to_range("192.168.0.0/24", &range1) && ip_convert_address_to_range("192.168.0.0-192.168.255.255", &range2) && memcmp(&range1, &range2, sizeof(struct ip_range)) == 0; + return ip_convert_address_to_range("192.168.0.0/16", &range1) && ip_convert_address_to_range("192.168.0.0-192.168.255.255", &range2) && memcmp(&range1, &range2, sizeof(struct ip_range)) == 0; });