Searched refs:optsize (Results 1 – 2 of 2) sorted by relevance
172 size_t optsize; in coap_add_option() local186 optsize = coap_opt_encode(opt, pdu->max_size - pdu->length, in coap_add_option()189 if (!optsize) { in coap_add_option()195 pdu->length += optsize; in coap_add_option()198 return optsize; in coap_add_option()204 size_t optsize; in coap_add_option_later() local218 optsize = coap_opt_encode(opt, pdu->max_size - pdu->length, in coap_add_option_later()221 if (!optsize) { in coap_add_option_later()227 pdu->length += optsize; in coap_add_option_later()230 return ((unsigned char*)opt) + optsize - len; in coap_add_option_later()[all …]
162 size_t optsize; in coap_option_next() local178 optsize = coap_opt_parse(oi->next_option, oi->length, &option); in coap_option_next()179 if (optsize) { in coap_option_next()180 assert(optsize <= oi->length); in coap_option_next()182 oi->next_option += optsize; in coap_option_next()183 oi->length -= optsize; in coap_option_next()