Lines Matching defs:option
143 coap_opt_t *option;
147 if ((option =
153 keep_proxy_uri = coap_malloc_type(COAP_STRING, coap_opt_length(option));
156 memcpy(keep_proxy_uri, coap_opt_value(option), coap_opt_length(option));
159 coap_opt_length(option),
162 coap_opt_length(option),
163 (const char *)coap_opt_value(option));
281 coap_opt_t *option;
413 /* cose is modified for encode option in response message */
508 while ((option = coap_option_next(&opt_iter))) {
517 coap_opt_length(option),
518 coap_opt_value(option)))
522 /* Make as Outer option as-is */
525 coap_opt_length(option),
526 coap_opt_value(option)))
529 /* Make as Inner option (unchanged) */
532 coap_opt_length(option),
533 coap_opt_value(option)))
537 /* Make as Inner option but empty */
544 observe_value = coap_decode_var_bytes(coap_opt_value(option),
545 coap_opt_length(option));
556 /* Make as Inner option */
559 coap_opt_length(option),
560 coap_opt_value(option)))
603 /* Add in OSCORE option (previously computed) */
775 const uint8_t *osc_value; /* value of OSCORE option */
1474 * [OSCORE option not copied across previously]
1493 /* Make Observe option reflect last 3 bytes of partial_iv */
2047 coap_opt_t *option;
2055 /* Observe option (creates inner and outer */
2056 option = coap_check_option(pdu, COAP_OPTION_OBSERVE, &opt_iter);
2057 if (option) {
2059 overhead += 2 + coap_opt_length(option);
2062 /* Proxy URI option Split - covered by coap_rebuild_pdu_for_proxy () */
2064 /* OSCORE option */