• Home
  • Raw
  • Download

Lines Matching refs:opt_delta

318   size_t opt_delta;  in coap_remove_option()  local
343 opt_delta = decode_this.delta + decode_next.delta; in coap_remove_option()
344 if (opt_delta <= 12) { in coap_remove_option()
346 next_option[0] = (next_option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4); in coap_remove_option()
348 else if (opt_delta <= 269 && decode_next.delta <= 12) { in coap_remove_option()
352 next_option[1] = (coap_opt_t)(opt_delta - 13); in coap_remove_option()
354 else if (opt_delta <= 269) { in coap_remove_option()
356 next_option[1] = (coap_opt_t)(opt_delta - 13); 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()
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()
420 size_t opt_delta; in coap_insert_option() local
443 opt_delta = opt_iter.number - number; in coap_insert_option()
462 option[0] = (option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4); in coap_insert_option()
464 else if (decode.delta <= 269 && opt_delta <= 12) { in coap_insert_option()
466 option[1] = (option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4); in coap_insert_option()
469 else if (decode.delta <= 269 && opt_delta <= 269) { in coap_insert_option()
471 option[1] = (coap_opt_t)(opt_delta - 13); in coap_insert_option()
473 else if (opt_delta <= 12) { in coap_insert_option()
475 option[2] = (option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4); in coap_insert_option()
478 else if (opt_delta <= 269) { in coap_insert_option()
481 option[2] = (coap_opt_t)(opt_delta - 13); in coap_insert_option()
486 option[1] = (coap_opt_t)((opt_delta - 269) >> 8); in coap_insert_option()
487 option[2] = (opt_delta - 269) & 0xff; in coap_insert_option()