Hi,
On Wed, Nov 11, 2015 at 01:48:07PM +0200, Lev Stipakov wrote:
> @@ -1301,18 +1303,20 @@ do_ifconfig (struct tuntap *tt,
> if ( do_ipv6 )
> {
> char * saved_actual;
> + char iface[64];
>
> if (!strcmp (actual, "NULL"))
> msg (M_FATAL, "Error: When using --tun-ipv6, if you have more than
> one TAP-Windows adapter, you must also specify --dev-node");
>
> - /* example: netsh interface ipv6 set address MyTap 2001:608:8003::d
> store=active */
> + openvpn_snprintf(iface, sizeof(iface), "interface=%lu",
> get_adapter_index_flexible(actual));
Uh. I'm afraid if I speak up once more, you'll stop talking to me...
(or not give me any beer next time we meet :) )
> + /* example: netsh interface ipv6 set address interface=42
> 2001:608:8003::d store=active */
> argv_printf (&argv,
> - "%s%sc interface ipv6 set address %s %s store=active",
> + "%s%sc interface ipv6 set address %s %s store=active",
> get_win_sys_path(),
> NETSH_PATH_SUFFIX,
> - actual,
> - ifconfig_ipv6_local );
> -
... but wouldn't
argv_printf (&argv,
"%s%sc interface ipv6 set address interface=%lu %s
store=active",
get_win_sys_path(),
NETSH_PATH_SUFFIX,
get_adapter_index_flexible(actual),
ifconfig_ipv6_local);
(without storing into a temp variable) work "just fine"?
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany [email protected]
fax: +49-89-35655025 [email protected]
signature.asc
Description: PGP signature
