Lines Matching refs:next_option
317 coap_opt_t *next_option = NULL; in coap_remove_option() local
337 next_option = coap_option_next(&opt_iter); in coap_remove_option()
338 if (next_option) { in coap_remove_option()
339 if (!coap_opt_parse(next_option, in coap_remove_option()
340 pdu->used_size - (next_option - pdu->token), in coap_remove_option()
346 next_option[0] = (next_option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4); in coap_remove_option()
350 next_option -= 1; in coap_remove_option()
351 next_option[0] = (next_option[1] & 0x0f) + (13 << 4); in coap_remove_option()
352 next_option[1] = (coap_opt_t)(opt_delta - 13); in coap_remove_option()
356 next_option[1] = (coap_opt_t)(opt_delta - 13); in coap_remove_option()
360 if (next_option - option < 2) { in coap_remove_option()
373 next_option = coap_option_next(&opt_iter); in coap_remove_option()
375 assert(next_option != NULL); in coap_remove_option()
376 memmove(&next_option[1], next_option, in coap_remove_option()
377 pdu->used_size - (next_option - pdu->token)); in coap_remove_option()
381 next_option++; in coap_remove_option()
383 next_option -= 2; in coap_remove_option()
384 next_option[0] = (next_option[2] & 0x0f) + (14 << 4); in coap_remove_option()
385 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8); in coap_remove_option()
386 next_option[2] = (opt_delta - 269) & 0xff; in coap_remove_option()
390 next_option -= 1; in coap_remove_option()
391 next_option[0] = (next_option[1] & 0x0f) + (14 << 4); in coap_remove_option()
392 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8); in coap_remove_option()
393 next_option[2] = (opt_delta - 269) & 0xff; in coap_remove_option()
396 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8); in coap_remove_option()
397 next_option[2] = (opt_delta - 269) & 0xff; in coap_remove_option()
401 next_option = option + coap_opt_encode_size(decode_this.delta, in coap_remove_option()
405 if (pdu->used_size - (next_option - pdu->token)) in coap_remove_option()
406 memmove(option, next_option, pdu->used_size - (next_option - pdu->token)); in coap_remove_option()
407 pdu->used_size -= next_option - option; in coap_remove_option()
409 pdu->data -= next_option - option; in coap_remove_option()