Lines Matching defs:option
511 /** Returns a textual description of the option name. */
602 /* unknown option type, just print to buf */
691 * This is done by the adding of a -DCOAP_DEBUG_BUF_SIZE=nnnn option to the
718 coap_opt_t *option;
765 while ((option = coap_option_next(&opt_iter))) {
779 coap_decode_var_bytes(coap_opt_value(option),
780 coap_opt_length(option)));
792 buf_len = print_readable(coap_opt_value(option),
793 coap_opt_length(option),
798 coap_decode_var_bytes(coap_opt_value(option),
799 coap_opt_length(option)));
809 coap_decode_var_bytes(coap_opt_value(option),
810 coap_opt_length(option)));
820 content_format = (int)coap_decode_var_bytes(coap_opt_value(option),
821 coap_opt_length(option));
830 /* split block option into number/more/size where more is the
832 if (COAP_OPT_BLOCK_SZX(option) == 7) {
835 coap_opt_block_num(option), /* block number */
836 COAP_OPT_BLOCK_MORE(option) ? 'M' : '_', /* M bit */
840 coap_opt_block_num(option), /* block number */
841 COAP_OPT_BLOCK_MORE(option) ? 'M' : '_'); /* M bit */
844 coap_opt_block_num(option), /* block number */
845 COAP_OPT_BLOCK_MORE(option) ? 'M' : '_', /* M bit */
846 (1 << (COAP_OPT_BLOCK_SZX(option) + 4))); /* block size */
852 opt_len = coap_opt_length(option);
858 opt_val = coap_opt_value(option);
922 if (coap_opt_length(option)) {
925 coap_decode_var_bytes(coap_opt_value(option),
926 coap_opt_length(option)));
935 opt_len = coap_opt_length(option);
936 opt_val = coap_opt_value(option);
946 /* generic output function for all other option types */
958 buf_len = print_readable(coap_opt_value(option),
959 coap_opt_length(option),