Lines Matching refs:max_opt
48 pdu->max_opt = 0; in coap_pdu_clear()
182 pdu->max_opt = old_pdu->max_opt; in coap_pdu_duplicate()
273 pdu->max_opt = 0; in coap_add_token()
403 pdu->max_opt -= decode_this.delta; in coap_remove_option()
424 if (number >= pdu->max_opt) in coap_insert_option()
550 if (number == pdu->max_opt) { in coap_add_option()
585 if (number < pdu->max_opt) { in coap_add_option()
591 optsize = coap_opt_encode_size(number - pdu->max_opt, len); in coap_add_option()
609 number - pdu->max_opt, data, len); in coap_add_option()
616 pdu->max_opt = number; in coap_add_option()
745 next_option_safe(coap_opt_t **optp, size_t *length, uint16_t *max_opt) { in next_option_safe() argument
758 if (*max_opt + option.delta > COAP_MAX_OPT) { in next_option_safe()
761 *max_opt += option.delta; in next_option_safe()
860 switch (pdu->max_opt) { in coap_pdu_parse_opt_csm()
873 switch (pdu->max_opt) { in coap_pdu_parse_opt_csm()
882 switch (pdu->max_opt) { in coap_pdu_parse_opt_csm()
894 switch (pdu->max_opt) { in coap_pdu_parse_opt_csm()
914 switch (pdu->max_opt) { in coap_pdu_parse_opt_base()
993 pdu->max_opt = 0; in coap_pdu_parse_opt()
1005 size_t optsize = next_option_safe(&opt, &length, &pdu->max_opt); in coap_pdu_parse_opt()
1022 (int)(opt_last - pdu->token - pdu->token_length), pdu->max_opt, in coap_pdu_parse_opt()
1044 pdu->max_opt = 0; in coap_pdu_parse_opt()
1051 size_t optsize = next_option_safe(&opt, &length, &pdu->max_opt); in coap_pdu_parse_opt()