Move IV_TCPNL from comp_generate_peer_info_string to push_peer_info
PATCH 1/1 Move IV_TCPNL from comp_generate_peer_info_string to push_peer_info
This IV variable has nothing to do with compression and should not depend if OpenVPN is compiled with USE_COMP. So move it to the other generic IV variables.
Signed-off-by Arne Schwabe <[email protected]...>
--- src/openvpn/comp.c | 1 - src/openvpn/ssl.c | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-)
src/openvpn/comp.c +0 -1
@@ -169,7 +169,6 @@ comp_generate_peer_info_string(const struct compress_options *opt, struct buffer }buf_printf (out,"IV_COMP_STUB=1\n" );buf_printf (out,"IV_COMP_STUBv2=1\n" ); -buf_printf (out,"IV_TCPNL=1\n" ); } }
src/openvpn/ssl.c +3 -0
@@ -2184,6 +2184,9 @@ push_peer_info(struct buffer *buf, struct tls_session *session)#elif defined(_WIN32)buf_printf (&out,"IV_PLAT=win\n" );#endif +/* Announce that we do not require strict sequence numbers with +* TCP. (TCP non-linear) */ +buf_printf (&out,"IV_TCPNL=1\n" ); }/* These are the IV variable that are sent to peers in p2p mode */
Signature · 1 line
2.33.0
Acked-by Gert Doering <[email protected]...>
"because it makes sense".
Briefly tested if it's still sent to the server (it is). Not much else to see here :-)
Your patch has been applied to the master branch.
commit 648e871e50e76586d65a267cf598d8f1ec0d0057
Author: Arne Schwabe Date: Sun Nov 14 14:03:11 2021 +0100
Move IV_TCPNL from comp_generate_peer_info_string to push_peer_info
Signed-off-by: Arne Schwabe <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg23182.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering