Lines Matching refs:coap_opt_t

241   result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 0, 0);  in t_encode_option1()
253 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5, 268); in t_encode_option2()
265 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 14, 1); in t_encode_option3()
277 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 268, 184); in t_encode_option4()
289 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 5133, 268); in t_encode_option5()
301 result = coap_opt_setheader((coap_opt_t *)buf, sizeof(buf), 65535, 65535); in t_encode_option6()
314 result = coap_opt_encode((coap_opt_t *)buf, sizeof(buf), 3, in t_encode_option7()
329 result = coap_opt_encode((coap_opt_t *)buf, 8, 15, in t_encode_option8()
334 result = coap_opt_encode((coap_opt_t *)buf, 1, 15, in t_encode_option8()
348 CU_ASSERT(coap_opt_delta((coap_opt_t *)teststr) == 1); in t_access_option1()
349 CU_ASSERT(coap_opt_length((coap_opt_t *)teststr) == 2); in t_access_option1()
350 CU_ASSERT_PTR_EQUAL(coap_opt_value((coap_opt_t *)teststr), teststr + 1); in t_access_option1()
351 CU_ASSERT(coap_opt_size((coap_opt_t *)teststr) == sizeof(teststr)); in t_access_option1()
358 CU_ASSERT(coap_opt_delta((coap_opt_t *)teststr) == 6666); in t_access_option2()
359 CU_ASSERT(coap_opt_length((coap_opt_t *)teststr) == 2); in t_access_option2()
360 CU_ASSERT_PTR_EQUAL(coap_opt_value((coap_opt_t *)teststr), teststr + 3); in t_access_option2()
361 CU_ASSERT(coap_opt_size((coap_opt_t *)teststr) == sizeof(teststr)); in t_access_option2()
371 CU_ASSERT(coap_opt_delta((coap_opt_t *)teststr) == 6423); in t_access_option3()
372 CU_ASSERT(coap_opt_length((coap_opt_t *)teststr) == 13); in t_access_option3()
373 CU_ASSERT_PTR_EQUAL(coap_opt_value((coap_opt_t *)teststr), teststr + 4); in t_access_option3()
374 CU_ASSERT(coap_opt_size((coap_opt_t *)teststr) == sizeof(teststr)); in t_access_option3()
381 CU_ASSERT(coap_opt_delta((coap_opt_t *)teststr) == 268); in t_access_option4()
382 CU_ASSERT(coap_opt_length((coap_opt_t *)teststr) == 65535); in t_access_option4()
383 CU_ASSERT_PTR_EQUAL(coap_opt_value((coap_opt_t *)teststr), teststr + 4); in t_access_option4()
384 CU_ASSERT(coap_opt_size((coap_opt_t *)teststr) == 65535 + 4); in t_access_option4()
391 CU_ASSERT(coap_opt_delta((coap_opt_t *)teststr) == 65535); in t_access_option5()
392 CU_ASSERT(coap_opt_length((coap_opt_t *)teststr) == 490); in t_access_option5()
393 CU_ASSERT_PTR_EQUAL(coap_opt_value((coap_opt_t *)teststr), teststr + 5); in t_access_option5()
394 CU_ASSERT(coap_opt_size((coap_opt_t *)teststr) == 495); in t_access_option5()
403 CU_ASSERT(coap_opt_delta((coap_opt_t *)teststr) == 0); in t_access_option6()
405 CU_ASSERT(coap_opt_length((coap_opt_t *)teststr) == 0); in t_access_option6()
406 CU_ASSERT_PTR_EQUAL(coap_opt_value((coap_opt_t *)teststr), NULL); in t_access_option6()
407 CU_ASSERT(coap_opt_size((coap_opt_t *)teststr) == 0); in t_access_option6()
414 CU_ASSERT(coap_opt_delta((coap_opt_t *)teststr) == 2); in t_access_option7()
415 CU_ASSERT(coap_opt_length((coap_opt_t *)teststr) == 0); in t_access_option7()
416 CU_ASSERT_PTR_EQUAL(coap_opt_value((coap_opt_t *)teststr), NULL); in t_access_option7()
417 CU_ASSERT(coap_opt_size((coap_opt_t *)teststr) == 0); in t_access_option7()
439 coap_opt_t *option; in t_iterate_option1()
464 coap_opt_t *option; in t_iterate_option2()
490 coap_opt_t *option; in t_iterate_option3()
532 coap_opt_t *option; in t_iterate_option4()
573 coap_opt_t *option; in t_iterate_option5()
605 coap_opt_t *option; in t_iterate_option6()
649 coap_opt_t *option; in t_iterate_option7()
695 coap_opt_t *option; in t_iterate_option8()
725 coap_opt_t *option; in t_iterate_option9()
755 coap_opt_t *option; in t_iterate_option10()