Lines Matching refs:tlpm_match
36 static struct tlpm_node *tlpm_match(struct tlpm_node *list,
50 node = tlpm_match(list, key, n_bits); in tlpm_add()
80 static struct tlpm_node *tlpm_match(struct tlpm_node *list, in tlpm_match() function
113 struct tlpm_node *best = tlpm_match(list, key, n_bits); in tlpm_delete()
143 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
146 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic()
148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic()
149 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8)); in test_lpm_basic()
150 assert(!tlpm_match(list, (uint8_t[]){ 0xfe }, 8)); in test_lpm_basic()
151 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 7)); in test_lpm_basic()
154 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
155 assert(t2 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic()
156 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 15)); in test_lpm_basic()
157 assert(!tlpm_match(list, (uint8_t[]){ 0x7f, 0xff }, 16)); in test_lpm_basic()
160 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
161 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic()
164 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
192 t1 = tlpm_match(l1, key, 16); in test_lpm_order()
193 t2 = tlpm_match(l2, key, 16); in test_lpm_order()
261 t = tlpm_match(list, data, 8 * keysize); in test_lpm_map()
298 t = tlpm_match(list, data, 8 * keysize); in test_lpm_map()