Lines Matching refs:bits

240           unsigned int bits;  in test_AddrMatch_self4()  local
243 for (bits = 0; bits < 40; ++bits) in test_AddrMatch_self4()
244 TEST_ASSERT_TRUE(keyacc_amatch(&ip4, &ip4, bits)); in test_AddrMatch_self4()
251 unsigned int bits; in test_AddrMatch_self6() local
254 for (bits = 0; bits < 136; ++bits) in test_AddrMatch_self6()
255 TEST_ASSERT_TRUE(keyacc_amatch(&ip6, &ip6, bits)); in test_AddrMatch_self6()
274 unsigned int bits; in test_AddrMatch_ipv4() local
281 for (bits = 0; bits < 40; ++bits) { in test_AddrMatch_ipv4()
283 "keyacc_amatch(*,*,%u) wrong", bits); in test_AddrMatch_ipv4()
284 want = (bits <= 23); in test_AddrMatch_ipv4()
285 TEST_ASSERT_EQUAL_MESSAGE(want, keyacc_amatch(&a1, &a2, bits), msgbuf); in test_AddrMatch_ipv4()
292 for (bits = 0; bits < 40; ++bits) { in test_AddrMatch_ipv4()
294 "keyacc_amatch(*,*,%u) wrong", bits); in test_AddrMatch_ipv4()
295 want = (bits <= 24); in test_AddrMatch_ipv4()
296 TEST_ASSERT_EQUAL_MESSAGE(want, keyacc_amatch(&a1, &a2, bits), msgbuf); in test_AddrMatch_ipv4()
304 unsigned int bits; in test_AddrMatch_ipv6() local
311 for (bits = 0; bits < 136; ++bits) { in test_AddrMatch_ipv6()
313 "keyacc_amatch(*,*,%u) wrong", bits); in test_AddrMatch_ipv6()
314 want = (bits <= 111); in test_AddrMatch_ipv6()
315 TEST_ASSERT_EQUAL_MESSAGE(want, keyacc_amatch(&a1, &a2, bits), msgbuf); in test_AddrMatch_ipv6()
322 for (bits = 0; bits < 136; ++bits) { in test_AddrMatch_ipv6()
324 "keyacc_amatch(*,*,%u) wrong", bits); in test_AddrMatch_ipv6()
325 want = (bits <= 112); in test_AddrMatch_ipv6()
326 TEST_ASSERT_EQUAL_MESSAGE(want, keyacc_amatch(&a1, &a2, bits), msgbuf); in test_AddrMatch_ipv6()