• Home
  • Raw
  • Download

Lines Matching refs:max_hdr_size

40   assert(pdu->max_hdr_size >= COAP_PDU_MAX_UDP_HEADER_SIZE);  in coap_pdu_clear()
76 pdu->max_hdr_size = COAP_PDU_MAX_UDP_HEADER_SIZE; in coap_pdu_from_pbuf()
78 pdu->token = (uint8_t *)pbuf->payload + pdu->max_hdr_size; in coap_pdu_from_pbuf()
79 pdu->alloc_size = pbuf->tot_len - pdu->max_hdr_size; in coap_pdu_from_pbuf()
102 pdu->max_hdr_size = COAP_PDU_MAX_UDP_HEADER_SIZE; in coap_pdu_init()
104 pdu->max_hdr_size = COAP_PDU_MAX_TCP_HEADER_SIZE; in coap_pdu_init()
108 pdu->pbuf = pbuf_alloc(PBUF_TRANSPORT, size + pdu->max_hdr_size, PBUF_RAM); in coap_pdu_init()
113 pdu->token = (uint8_t *)pdu->pbuf->payload + pdu->max_hdr_size; in coap_pdu_init()
117 buf = coap_malloc_type(COAP_PDU_BUF, pdu->alloc_size + pdu->max_hdr_size); in coap_pdu_init()
122 pdu->token = buf + pdu->max_hdr_size; in coap_pdu_init()
148 coap_free_type(COAP_PDU_BUF, pdu->token - pdu->max_hdr_size); in coap_delete_pdu()
224 new_hdr = (uint8_t*)realloc(pdu->token - pdu->max_hdr_size, new_size + pdu->max_hdr_size); in coap_pdu_resize()
229 pdu->token = new_hdr + pdu->max_hdr_size; in coap_pdu_resize()
1114 if (hdr_size > pdu->max_hdr_size) in coap_pdu_parse()
1132 assert(pdu->max_hdr_size >= 4); in coap_pdu_encode_header()
1133 if (pdu->max_hdr_size < 4) { in coap_pdu_encode_header()
1154 assert(pdu->max_hdr_size >= 2); in coap_pdu_encode_header()
1155 if (pdu->max_hdr_size < 2) { in coap_pdu_encode_header()
1165 assert(pdu->max_hdr_size >= 3); in coap_pdu_encode_header()
1166 if (pdu->max_hdr_size < 3) { in coap_pdu_encode_header()
1176 assert(pdu->max_hdr_size >= 4); in coap_pdu_encode_header()
1177 if (pdu->max_hdr_size < 4) { in coap_pdu_encode_header()
1188 assert(pdu->max_hdr_size >= 6); in coap_pdu_encode_header()
1189 if (pdu->max_hdr_size < 6) { in coap_pdu_encode_header()