Searched refs:max_with_header (Results 1 – 1 of 1) sorted by relevance
707 size_t max_with_header) { in coap_session_max_pdu_size_internal() argument710 return max_with_header > 4 ? max_with_header - 4 : 0; in coap_session_max_pdu_size_internal()713 return max_with_header > 4 ? max_with_header - 4 : 0; in coap_session_max_pdu_size_internal()715 if (max_with_header <= 2) in coap_session_max_pdu_size_internal()717 else if (max_with_header <= COAP_MAX_MESSAGE_SIZE_TCP0 + 2) in coap_session_max_pdu_size_internal()718 return max_with_header - 2; in coap_session_max_pdu_size_internal()719 else if (max_with_header <= COAP_MAX_MESSAGE_SIZE_TCP8 + 3) in coap_session_max_pdu_size_internal()720 return max_with_header - 3; in coap_session_max_pdu_size_internal()721 else if (max_with_header <= COAP_MAX_MESSAGE_SIZE_TCP16 + 4) in coap_session_max_pdu_size_internal()722 return max_with_header - 4; in coap_session_max_pdu_size_internal()[all …]