@@ -297,6 +297,7 @@ static const char usage_message[] =
297
297
"--tun-mtu-extra n : Assume that tun/tap device might return as many\n"
298
298
" as n bytes more than the tun-mtu size on read\n"
299
299
" (default TUN=0 TAP=%d).\n"
300
+ "--tun-mtu-max n : Maximum pushable MTU (default and minimum=%d).\n"
300
301
"--link-mtu n : Take the TCP/UDP device MTU to be n and derive the tun MTU\n"
301
302
" from it.\n"
302
303
"--mtu-disc type : Should we do Path MTU discovery on TCP/UDP channel?\n"
@@ -4844,8 +4845,9 @@ usage(void)
4844
4845
4845
4846
fprintf (fp , usage_message , title_string , o .ce .connect_retry_seconds ,
4846
4847
o .ce .connect_retry_seconds_max , o .ce .local_port , o .ce .remote_port , TUN_MTU_DEFAULT ,
4847
- TAP_MTU_EXTRA_DEFAULT , o .verbosity , o .authname , o .replay_window , o .replay_time ,
4848
- o .tls_timeout , o .renegotiate_seconds , o .handshake_window , o .transition_window );
4848
+ TAP_MTU_EXTRA_DEFAULT , TUN_MTU_MAX_MIN , o .verbosity , o .authname , o .replay_window ,
4849
+ o .replay_time , o .tls_timeout , o .renegotiate_seconds , o .handshake_window ,
4850
+ o .transition_window );
4849
4851
fflush (fp );
4850
4852
4851
4853
#endif /* ENABLE_SMALL */
@@ -7011,7 +7013,7 @@ add_option(struct options *options, char *p[], bool is_inline, const char *file,
7011
7013
options -> ce .occ_mtu = 0 ;
7012
7014
}
7013
7015
}
7014
- else if (streq (p [0 ], "tun - mtu - max ") && p [1 ] && !p [3 ])
7016
+ else if (streq (p [0 ], "tun - mtu - max ") && p [1 ] && !p [2 ])
7015
7017
{
7016
7018
VERIFY_PERMISSION (OPT_P_MTU | OPT_P_CONNECTION );
7017
7019
int max_mtu = positive_atoi (p [1 ], msglevel );
0 commit comments