• Home
  • Raw
  • Download

Lines Matching refs:uint8_t

34 	uint8_t key[];
38 const uint8_t *key,
42 const uint8_t *key, in tlpm_add()
82 const uint8_t *key, in tlpm_match()
111 const uint8_t *key, in tlpm_delete()
144 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
146 t1 = list = tlpm_add(list, (uint8_t[]){ 0xff }, 8); in test_lpm_basic()
147 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
148 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic()
149 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0x00 }, 16)); in test_lpm_basic()
150 assert(!tlpm_match(list, (uint8_t[]){ 0x7f }, 8)); in test_lpm_basic()
151 assert(!tlpm_match(list, (uint8_t[]){ 0xfe }, 8)); in test_lpm_basic()
152 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 7)); in test_lpm_basic()
154 t2 = list = tlpm_add(list, (uint8_t[]){ 0xff, 0xff }, 16); in test_lpm_basic()
155 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
156 assert(t2 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic()
157 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 15)); in test_lpm_basic()
158 assert(!tlpm_match(list, (uint8_t[]){ 0x7f, 0xff }, 16)); in test_lpm_basic()
160 list = tlpm_delete(list, (uint8_t[]){ 0xff, 0xff }, 16); in test_lpm_basic()
161 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
162 assert(t1 == tlpm_match(list, (uint8_t[]){ 0xff, 0xff }, 16)); in test_lpm_basic()
164 list = tlpm_delete(list, (uint8_t[]){ 0xff }, 8); in test_lpm_basic()
165 assert(!tlpm_match(list, (uint8_t[]){ 0xff }, 8)); in test_lpm_basic()
182 l1 = tlpm_add(l1, (uint8_t[]){ in test_lpm_order()
191 uint8_t key[] = { rand() % 0xff, rand() % 0xff }; in test_lpm_order()
214 uint8_t *data, *value; in test_lpm_map()