Lines Matching refs:tkl
224 uint8_t tkl; in coap_ack_init() local
229 tkl = code ? coap_header_get_token(req, token) : 0; in coap_ack_init()
231 return coap_packet_init(cpkt, data, max_len, ver, COAP_TYPE_ACK, tkl, in coap_ack_init()
752 uint8_t tkl; in coap_packet_parse() local
775 tkl = cpkt->data[0] & 0x0f; in coap_packet_parse()
776 if (tkl > 8) { in coap_packet_parse()
780 cpkt->hdr_len = BASIC_HEADER_SIZE + tkl; in coap_packet_parse()
993 uint8_t tkl; in coap_header_get_token() local
999 tkl = cpkt->data[0] & 0x0f; in coap_header_get_token()
1000 if (tkl > COAP_TOKEN_MAX_LEN) { in coap_header_get_token()
1004 if (tkl) { in coap_header_get_token()
1005 memcpy(token, cpkt->data + BASIC_HEADER_SIZE, tkl); in coap_header_get_token()
1008 return tkl; in coap_header_get_token()
1812 uint8_t tkl; in coap_response_received() local
1821 tkl = coap_header_get_token(response, token); in coap_response_received()
1826 if ((r->id == 0U) && (r->tkl == 0U)) { in coap_response_received()
1831 if ((r->id != id) && (tkl == 0U)) { in coap_response_received()
1835 if (tkl > 0 && memcmp(r->token, token, tkl)) { in coap_response_received()
1858 uint8_t tkl; in coap_reply_init() local
1861 tkl = coap_header_get_token(request, token); in coap_reply_init()
1863 if (tkl > 0) { in coap_reply_init()
1864 memcpy(reply->token, token, tkl); in coap_reply_init()
1867 reply->tkl = tkl; in coap_reply_init()
1918 observer->tkl = coap_header_get_token(request, observer->token); in coap_observer_init()
2019 if (o->tkl == token_len && in coap_find_observer()
2057 if (o->tkl == token_len && memcmp(o->token, token, token_len) == 0) { in coap_find_observer_by_token()