Lines Matching refs:pdu
24 coap_pdu_t *pdu; /* Holds the parsed PDU for most tests */ variable
165 response = coap_wellknown_response(ctx, pdu); in t_wellknown4()
189 if (!coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown5()
197 response = coap_wellknown_response(ctx, pdu); in t_wellknown5()
219 coap_pdu_clear(pdu, pdu->max_size); /* clear PDU */ in t_wellknown6()
221 pdu->hdr->type = COAP_MESSAGE_NON; in t_wellknown6()
222 pdu->hdr->code = COAP_REQUEST_GET; in t_wellknown6()
223 pdu->hdr->id = htons(0x1234); in t_wellknown6()
225 CU_ASSERT_PTR_NOT_NULL(pdu); in t_wellknown6()
227 if (!pdu || !coap_add_option(pdu, COAP_OPTION_BLOCK2, in t_wellknown6()
234 response = coap_wellknown_response(ctx, pdu); in t_wellknown6()
260 pdu = coap_pdu_init(0, 0, 0, TEST_PDU_SIZE); in t_wkc_tests_create()
263 if (ctx && pdu) { in t_wkc_tests_create()
294 return ctx == NULL || pdu == NULL; in t_wkc_tests_create()
299 coap_delete_pdu(pdu); in t_wkc_tests_remove()