Searched refs:max_hdr_size (Results 1 – 2 of 2) sorted by relevance
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()[all …]
100 uint8_t max_hdr_size; /**< space reserved for protocol-specific header */ member