Lines Matching refs:max_with_header
707 size_t max_with_header) {
710 return max_with_header > 4 ? max_with_header - 4 : 0;
713 return max_with_header > 4 ? max_with_header - 4 : 0;
715 if (max_with_header <= 2)
717 else if (max_with_header <= COAP_MAX_MESSAGE_SIZE_TCP0 + 2)
718 return max_with_header - 2;
719 else if (max_with_header <= COAP_MAX_MESSAGE_SIZE_TCP8 + 3)
720 return max_with_header - 3;
721 else if (max_with_header <= COAP_MAX_MESSAGE_SIZE_TCP16 + 4)
722 return max_with_header - 4;
724 return max_with_header - 6;
740 size_t max_with_header;
760 max_with_header = (size_t)(session->mtu - session->tls_overhead);
762 return coap_session_max_pdu_size_internal(session, max_with_header);