Message-ID: <48C610E7.8020308@...41...> Date: Tue, 09 Sep 2008 00:00:07 -0600 From: James Yonan MIME-Version: 1.0 References: <81AF7E8F1C0044E88581729A677FA384@...576...> <48C4C77A.3030306@...1114...> In-Reply-To: <48C4C77A.3030306@...1114...> Subject: Re: [Openvpn-devel] Confusing "mtu-dynamic" warnings List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: David Sommerseth Cc: openvpn-devel@lists.sourceforge.net, Dave It's not so simple -- the "mtu-dynamic" string is passed across the network which means the patch below will break backward compatibility when one side of the connection is patched but the other side is not. In fact, that's the reason why the options consistency protocol still uses "mtu-dynamic" instead of "fragment". The solution that preserves backward compatibility is to continue using "mtu-dynamic", but do a search/replace of "mtu-dynamic" -> "fragment" on the warning string before it is output. Actually if that's the worst bug you guys can find, we're probably ready to release 2.1 :) James David Sommerseth wrote: > I'm guessing the following patch would correct this .... > > > --- options.c.orig 2008-09-08 08:32:05.000000000 +0200 > +++ options.c 2008-09-08 08:31:10.000000000 +0200 > @@ -2236,7 +2236,7 @@ > > #ifdef ENABLE_FRAGMENT > if (o->fragment) > - buf_printf (&out, ",mtu-dynamic"); > + buf_printf (&out, ",fragment"); > #endif > > #ifdef USE_CRYPTO > > > Seems to me like it's just a typo when preparing the argument parsing. > > > kind regards, > > David Sommerseth > > > > > Dave wrote: >> .. >>> Hi, >>> >>> When makins some inconsistency mistake with "--fragment" >>> settings, I get an error message like: >>> >>> WARNING: 'mtu-dynamic' is present in local config but missing >>> in remote config, local='mtu-dynamic' >>> >>> I guess this message has to be updates, as "--fragment" is >>> meant to replace "--mtu-dynamic" AFAICS. >>> >>> This is with 2.1_rc9. >> ... >> >> Nice bug! --mtu-dynamic is an ancient option, it was dropped in version 1.5 >> about 5 years ago. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge >> Build the coolest Linux based applications with Moblin SDK & win great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Openvpn-devel mailing list >> Openvpn-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/openvpn-devel > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel