Lines Matching refs:prefix
63 } prefix[] = { variable
129 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 64) >= 0); in TEST()
130 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 0) < 0); in TEST()
131 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 1) < 0); in TEST()
132 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 2) < 0); in TEST()
133 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 3) >= 0); in TEST()
134 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 125) >= 0); in TEST()
135 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 128) >= 0); in TEST()
136 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 129) < 0); in TEST()
137 assert_se(sd_radv_prefix_set_prefix(p, &prefix[0].address, 255) < 0); in TEST()
306 for (i = 0; i < ELEMENTSOF(prefix); i++) { in TEST()
312 assert_se(sd_radv_prefix_set_prefix(p, &prefix[i].address, in TEST()
313 prefix[i].prefixlen) >= 0); in TEST()
314 if (prefix[i].valid > 0) in TEST()
315 …assert_se(sd_radv_prefix_set_valid_lifetime(p, prefix[i].valid * USEC_PER_SEC, USEC_INFINITY) >= 0… in TEST()
316 if (prefix[i].preferred > 0) in TEST()
317 …assert_se(sd_radv_prefix_set_preferred_lifetime(p, prefix[i].preferred * USEC_PER_SEC, USEC_INFINI… in TEST()
319 assert_se((sd_radv_add_prefix(ra, p) >= 0) == prefix[i].successful); in TEST()
321 assert_se((sd_radv_add_prefix(ra, p) >= 0) == prefix[i].successful); in TEST()