Lines Matching refs:token_length
378 if (full_match(pdu->token, pdu->token_length, in coap_add_data_large_internal()
413 avail -= (pdu->token_length <= 8) ? pdu->token_length <= 8 : 0; in coap_add_data_large_internal()
481 lg_xmit->b.b1.app_token = coap_new_binary(pdu->token_length); in coap_add_data_large_internal()
484 memcpy(lg_xmit->b.b1.app_token->s, pdu->token, pdu->token_length); in coap_add_data_large_internal()
492 lg_xmit->b.b1.token_length = coap_encode_var_safe8(lg_xmit->b.b1.token, in coap_add_data_large_internal()
570 avail -= (pdu->token_length <= 8) ? pdu->token_length <= 8 : 0; in coap_add_data_large_internal()
838 assert(pdu->token_length <= 8); in coap_block_new_lg_crcv()
839 lg_crcv->token_length = min(pdu->token_length, 8); in coap_block_new_lg_crcv()
841 memcpy(lg_crcv->token, pdu->token, lg_crcv->token_length); in coap_block_new_lg_crcv()
845 memcpy(lg_crcv->base_token, pdu->token, lg_crcv->token_length); in coap_block_new_lg_crcv()
846 lg_crcv->base_token_length = lg_crcv->token_length; in coap_block_new_lg_crcv()
849 lg_crcv->app_token = coap_new_binary(lg_crcv->token_length); in coap_block_new_lg_crcv()
854 memcpy(lg_crcv->app_token->s, pdu->token, lg_crcv->token_length); in coap_block_new_lg_crcv()
1068 out_pdu = coap_pdu_duplicate(&p->pdu, session, pdu->token_length, in coap_handle_request_send_block()
1317 memcpy(p->last_token, pdu->token, pdu->token_length); in coap_handle_request_put_block()
1318 p->last_token_length = pdu->token_length; in coap_handle_request_put_block()
1453 !block_token_match(rcvd->token, rcvd->token_length, in coap_handle_response_send_block()
1454 p->b.b1.token, p->b.b1.token_length)) { in coap_handle_response_send_block()
1507 p->pdu.token_length); in coap_handle_response_send_block()
1628 if (!full_match(rcvd->token, rcvd->token_length, in coap_handle_response_get_block()
1629 p->token, p->token_length)) { in coap_handle_response_get_block()
1715 memcpy(p->token, pdu->token, pdu->token_length); in coap_handle_response_get_block()
1716 p->token_length = pdu->token_length; in coap_handle_response_get_block()
1788 memcpy(p->token, pdu->token, pdu->token_length); in coap_handle_response_get_block()
1789 p->token_length = pdu->token_length; in coap_handle_response_get_block()
1842 p->token_length = p->base_token_length; in coap_handle_response_get_block()
1868 p->token_length = p->base_token_length; in coap_handle_response_get_block()