Change in openvpn[master]: Remove --mtu-test
A message that is not in the archive (sent off-list or not yet received): gerrit.1766165378000.Ic1e84ef6fb613851861a695bfbdbc1c32970a398@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1454?usp=email
to review the following change.
Change subject: Remove --mtu-test
......................................................................
Remove --mtu-test
This option doesn't seem to have worked right at least since the merge of commit fb76954a232decc86e071a76861c1e4fdd2507ab which was merged before 2.6.0. Clearly noone cares enough about this feature maintain or even test it. So let's not pretend and get rid of it.
---
M doc/man-sections/link-options.rst
M doc/man-sections/unsupported-options.rst
M src/openvpn/forward.c
M src/openvpn/init.c
M src/openvpn/occ.c
M src/openvpn/occ.h
M src/openvpn/openvpn.h
M src/openvpn/options.c
8 files changed, 5 insertions(+), 338 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/54/1454/1
doc/man-sections/link-options.rst +0 -7
@@ -222,13 +222,6 @@ :code:`yes` Always DF (Don't Fragment) ---mtu-test - To empirically measure MTU on connection startup, add the ``--mtu-test`` - option to your configuration. OpenVPN will send ping packets of various - sizes to the remote peer and measure the largest packets which were - successfully received. The ``--mtu-test`` process normally takes about 3 - minutes to complete. - --nobind Do not bind to local address and port. The IP stack will allocate a dynamic port for returning packets. Since the value of the dynamic port
doc/man-sections/unsupported-options.rst +3 -0
@@ -35,6 +35,9 @@ --max-routes Removed in OpenVPN 2.4. The limit was removed. +--mtu-test + This option was broken in OpenVPN 2.6 and was removed in OpenVPN 2.7. + --ncp-disable Removed in OpenVPN 2.6. This option mainly served a role as debug option when NCP was first introduced. It should no longer be necessary.
src/openvpn/forward.c +0 -11
@@ -810,9 +810,6 @@/* Should we send an OCC_REQUEST message? */ check_send_occ_req (c); -/* Should we send an MTU load test? */ -check_send_occ_load_test (c); -/* Should we send an OCC_EXIT message to remote? */ if (c->c2.explicit_exit_notification_time_wait) {
@@ -993,11 +990,6 @@ { c->c2.link_read_bytes += c->c2.buf.len; link_read_bytes_global += c->c2.buf.len; - c->c2.original_recv_size = c->c2.buf.len; - } - else - { - c->c2.original_recv_size =0 ; }#ifdef ENABLE_DEBUG
@@ -1168,8 +1160,6 @@if (c->c2.buf.len >0 ) { c->c2.link_read_bytes_auth += c->c2.buf.len; - c->c2.max_recv_size_local = -max_int (c->c2.original_recv_size, c->c2.max_recv_size_local); }/* Did we just receive an openvpn ping packet? */
@@ -1825,7 +1815,6 @@if (size >0 ) { - c->c2.max_send_size_local =max_int (size, c->c2.max_send_size_local); c->c2.link_write_bytes += size; link_write_bytes_global += size; }
src/openvpn/init.c +0 -6
@@ -1378,12 +1378,6 @@event_timeout_init (&c->c2.occ_interval,OCC_INTERVAL_SECONDS , now); } -if (c->options.mtu_test) - { -event_timeout_init (&c->c2.occ_mtu_load_test_interval,OCC_MTU_LOAD_INTERVAL_SECONDS , - now); - } -/* initialize packet_id persistence timer */ if (c->options.packet_id_file) {
src/openvpn/occ.c +1 -247
290 lines not on this page · raw message
src/openvpn/occ.h +1 -44
68 lines not on this page · raw message
src/openvpn/openvpn.h +0 -17
@@ -301,23 +301,6 @@struct event_timeout occ_interval;/* -* Keep track of maximum packet size received so far -* (of authenticated packets). -*/ -int original_recv_size;/* temporary */ -int max_recv_size_local;/* max packet size received */ -int max_recv_size_remote;/* max packet size received by remote */ -int max_send_size_local;/* max packet size sent */ -int max_send_size_remote;/* max packet size sent by remote */ - - -/* remote wants us to send back a load test packet of this size */ -int occ_mtu_load_size; - -struct event_timeout occ_mtu_load_test_interval; -int occ_mtu_load_n_tries; - -/* * TLS-mode crypto objects. */ struct tls_multi *tls_multi;/**< TLS state structure for this VPN
src/openvpn/options.c +0 -6
@@ -305,7 +305,6 @@" 'no' -- Never send DF (Don't Fragment) frames\n" " 'maybe' -- Use per-route hints\n" " 'yes' -- Always DF (Don't Fragment)\n" -"--mtu-test : Empirically measure and report MTU.\n" #ifdef ENABLE_FRAGMENT"--fragment max : Enable internal datagram fragmentation so that no UDP\n" " datagrams are sent which are larger than max bytes.\n"
@@ -6479,11 +6478,6 @@VERIFY_PERMISSION (OPT_P_MTU |OPT_P_CONNECTION ); options->ce.mtu_discover_type =translate_mtu_discover_type_name (p[1 ]); } -else if (streq (p[0 ],"mtu-test" ) && !p[1 ]) - { -VERIFY_PERMISSION (OPT_P_GENERAL ); - options->mtu_test = true; - }else if (streq (p[0 ],"nice" ) && p[1 ] && !p[2 ]) {VERIFY_PERMISSION (OPT_P_NICE );
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1454?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic1e84ef6fb613851861a695bfbdbc1c32970a398
Gerrit-Change-Number: 1454
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1454?usp=email )
Change subject: Remove --mtu-test
......................................................................
Patch Set 1: Code-Review-1
(1 comment)
Patchset:
PS1:
I would prefer to have it repaired. I regularily see weird MTU issues (like in DB train wifi) and an easy way to have openvpn test MTU would be welcome.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1454?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic1e84ef6fb613851861a695bfbdbc1c32970a398
Gerrit-Change-Number: 1454
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Thu, 15 Jan 2026 09:29:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes