Lines Matching defs:opt_delta

433   size_t opt_delta;
458 opt_delta = decode_this.delta + decode_next.delta;
459 if (opt_delta < 13) {
461 next_option[0] = (next_option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4);
462 } else if (opt_delta < 269 && decode_next.delta < 13) {
466 next_option[1] = (coap_opt_t)(opt_delta - 13);
467 } else if (opt_delta < 269) {
469 next_option[1] = (coap_opt_t)(opt_delta - 13);
470 } else if (decode_next.delta < 13) { /* opt_delta >= 269 */
497 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8);
498 next_option[2] = (opt_delta - 269) & 0xff;
499 } else if (decode_next.delta < 269) { /* opt_delta >= 269 */
503 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8);
504 next_option[2] = (opt_delta - 269) & 0xff;
505 } else { /* decode_next.delta >= 269 && opt_delta >= 269 */
506 next_option[1] = (coap_opt_t)((opt_delta - 269) >> 8);
507 next_option[2] = (opt_delta - 269) & 0xff;
572 size_t opt_delta;
595 opt_delta = opt_iter.number - number;
596 if (opt_delta == 0) {
618 option[0] = (option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4);
619 } else if (decode.delta < 269 && opt_delta < 13) {
621 option[1] = (option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4);
623 } else if (decode.delta < 269 && opt_delta < 269) {
625 option[1] = (coap_opt_t)(opt_delta - 13);
626 } else if (opt_delta < 13) {
628 option[2] = (option[0] & 0x0f) + (coap_opt_t)(opt_delta << 4);
630 } else if (opt_delta < 269) {
633 option[2] = (coap_opt_t)(opt_delta - 13);
637 option[1] = (coap_opt_t)((opt_delta - 269) >> 8);
638 option[2] = (opt_delta - 269) & 0xff;