Lines Matching refs:opt_iter

666   coap_opt_iterator_t opt_iter;
670 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL);
672 while (coap_option_next(&opt_iter)) {
673 if (opt_iter.number & 0x01) {
675 switch (opt_iter.number) {
681 opt_iter.number);
683 coap_option_filter_set(unknown, opt_iter.number);
707 if (coap_option_filter_get(&ctx->known_options, opt_iter.number) <= 0) {
709 if ((opt_iter.number & 0x02) == 0) {
723 coap_log_debug("unknown critical option %d\n", opt_iter.number);
726 /* When opt_iter.number cannot be set in unknown, all of the appropriate
729 if (coap_option_filter_set(unknown, opt_iter.number) == 0) {
735 if (last_number == opt_iter.number) {
737 if (!coap_option_check_repeatable(opt_iter.number)) {
739 if (coap_option_filter_set(unknown, opt_iter.number) == 0) {
743 } else if (opt_iter.number == COAP_OPTION_BLOCK2 &&
748 if (coap_get_block_b(session, pdu, opt_iter.number, &block)) {
755 coap_update_option(pdu, opt_iter.number,
763 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL);
770 last_number = opt_iter.number;
1043 coap_opt_iterator_t opt_iter;
1136 opt = coap_check_option(pdu, COAP_OPTION_OBSERVE, &opt_iter);
1167 if (!coap_check_option(pdu, COAP_OPTION_RTAG, &opt_iter) &&
1273 coap_check_option(pdu, COAP_OPTION_OBSERVE, &opt_iter) &&
1274 coap_check_option(pdu, COAP_OPTION_Q_BLOCK1, &opt_iter)) {
1391 coap_opt_iterator_t opt_iter;
1428 opt = coap_check_option(pdu, COAP_OPTION_HOP_LIMIT, &opt_iter);
1532 if (coap_check_option(pdu, COAP_OPTION_BLOCK1, &opt_iter) != NULL) {
1535 if (coap_check_option(pdu, COAP_OPTION_BLOCK2, &opt_iter) != NULL) {
1541 opt = coap_check_option(pdu, COAP_OPTION_BLOCK1, &opt_iter);
1545 opt = coap_check_option(pdu, COAP_OPTION_BLOCK2, &opt_iter);
2369 coap_opt_iterator_t opt_iter;
2411 coap_option_iterator_init(request, &opt_iter, opts);
2417 while ((option = coap_option_next(&opt_iter))) {
2418 uint16_t delta = opt_iter.number - opt_num;
2419 /* calculate space required to encode (opt_iter.number - opt_num) */
2443 opt_num = opt_iter.number;
2458 coap_option_iterator_init(request, &opt_iter, opts);
2459 while ((option = coap_option_next(&opt_iter))) {
2460 coap_add_option_internal(response, opt_iter.number,
2663 coap_opt_iterator_t opt_iter;
2670 nores = coap_check_option(request, COAP_OPTION_NORESPONSE, &opt_iter);
2768 coap_opt_iterator_t opt_iter;
2812 opt = coap_check_option(pdu, COAP_OPTION_PROXY_SCHEME, &opt_iter);
2814 opt = coap_check_option(pdu, COAP_OPTION_URI_HOST, &opt_iter);
2823 opt = coap_check_option(pdu, COAP_OPTION_PROXY_URI, &opt_iter);
2859 opt = coap_check_option(pdu, COAP_OPTION_URI_HOST, &opt_iter);
2900 opt = coap_check_option(pdu, COAP_OPTION_HOP_LIMIT, &opt_iter);
3019 opt = coap_check_option(pdu, COAP_OPTION_IF_NONE_MATCH, &opt_iter);
3036 opt = coap_check_option(pdu, COAP_OPTION_CONTENT_FORMAT, &opt_iter);
3077 observe = coap_check_option(pdu, COAP_OPTION_OBSERVE, &opt_iter);
3187 coap_check_option(response, COAP_OPTION_ECHO, &opt_iter)) {
3437 coap_opt_iterator_t opt_iter;
3441 coap_option_iterator_init(pdu, &opt_iter, COAP_OPT_ALL);
3447 while ((option = coap_option_next(&opt_iter))) {
3448 if (opt_iter.number == COAP_SIGNALING_OPTION_MAX_MESSAGE_SIZE) {
3452 } else if (opt_iter.number == COAP_SIGNALING_OPTION_BLOCK_WISE_TRANSFER) {
3454 } else if (opt_iter.number == COAP_SIGNALING_OPTION_EXTENDED_TOKEN_LENGTH) {
3536 coap_opt_iterator_t opt_iter;
3570 if (coap_check_option(pdu, COAP_OPTION_OSCORE, &opt_iter) != NULL) {
3583 coap_check_option(pdu, COAP_OPTION_PROXY_SCHEME, &opt_iter) != NULL &&
3584 (opt = coap_check_option(pdu, COAP_OPTION_URI_HOST, &opt_iter))