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; });