Lines Matching refs:hdr

37   pdu->hdr->type = COAP_MESSAGE_CON;  in t_error_response1()
38 pdu->hdr->id = htons(0x1234); in t_error_response1()
47 CU_ASSERT(response->hdr->version == 1); in t_error_response1()
48 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response1()
49 CU_ASSERT(response->hdr->token_length == 0); in t_error_response1()
50 CU_ASSERT(response->hdr->code == 0x80); in t_error_response1()
51 CU_ASSERT(pdu->hdr->id == htons(0x1234)); in t_error_response1()
53 CU_ASSERT(memcmp(response->hdr, teststr, sizeof(teststr)) == 0); in t_error_response1()
66 pdu->hdr->type = COAP_MESSAGE_NON; in t_error_response2()
67 pdu->hdr->id = htons(0x1234); in t_error_response2()
77 CU_ASSERT(response->hdr->version == 1); in t_error_response2()
78 CU_ASSERT(response->hdr->type == COAP_MESSAGE_NON); in t_error_response2()
79 CU_ASSERT(response->hdr->token_length == 5); in t_error_response2()
80 CU_ASSERT(response->hdr->code == 0x84); in t_error_response2()
82 CU_ASSERT(memcmp(response->hdr, teststr, sizeof(teststr)) == 0); in t_error_response2()
96 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response3()
110 CU_ASSERT(response->hdr->version == 1); in t_error_response3()
111 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response3()
112 CU_ASSERT(response->hdr->token_length == 5); in t_error_response3()
113 CU_ASSERT(response->hdr->code == code); in t_error_response3()
115 CU_ASSERT(memcmp(response->hdr, teststr, sizeof(teststr)) == 0); in t_error_response3()
135 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response4()
149 CU_ASSERT(response->hdr->version == 1); in t_error_response4()
150 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response4()
151 CU_ASSERT(response->hdr->token_length == 5); in t_error_response4()
152 CU_ASSERT(response->hdr->code == code); in t_error_response4()
154 CU_ASSERT(memcmp(response->hdr, teststr, sizeof(teststr)) == 0); in t_error_response4()
176 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response5()
190 CU_ASSERT(response->hdr->version == 1); in t_error_response5()
191 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response5()
192 CU_ASSERT(response->hdr->token_length == 5); in t_error_response5()
193 CU_ASSERT(response->hdr->code == code); in t_error_response5()
195 CU_ASSERT(memcmp(response->hdr, teststr, sizeof(teststr)) == 0); in t_error_response5()
217 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response6()
231 CU_ASSERT(response->hdr->version == 1); in t_error_response6()
232 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response6()
233 CU_ASSERT(response->hdr->token_length == 5); in t_error_response6()
234 CU_ASSERT(response->hdr->code == code); in t_error_response6()
236 CU_ASSERT(memcmp(response->hdr, teststr, sizeof(teststr)) == 0); in t_error_response6()
258 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response7()
273 CU_ASSERT(response->hdr->version == 1); in t_error_response7()
274 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response7()
275 CU_ASSERT(response->hdr->token_length == 5); in t_error_response7()
276 CU_ASSERT(response->hdr->code == code); in t_error_response7()
278 CU_ASSERT(memcmp(response->hdr, teststr, sizeof(teststr)) == 0); in t_error_response7()
294 pdu->hdr->type = COAP_MESSAGE_CON; in t_error_response8()
314 CU_ASSERT(response->hdr->version == 1); in t_error_response8()
315 CU_ASSERT(response->hdr->type == COAP_MESSAGE_ACK); in t_error_response8()
316 CU_ASSERT(response->hdr->token_length == 5); in t_error_response8()
317 CU_ASSERT(response->hdr->code == code); in t_error_response8()
319 CU_ASSERT(memcmp(response->hdr, teststr, sizeof(teststr)) == 0); in t_error_response8()