Re: [Openvpn-devel] [PATCH v3] Use adapter index instead of name

2015-11-13 Thread Gert Doering
Hi, On Wed, Nov 11, 2015 at 08:40:06PM +0100, Gert Doering wrote: > ... but wouldn't > > argv_printf (&argv, > "%s%sc interface ipv6 set address interface=%lu %s > store=active", >get_win_sys_path(), >NETSH_PATH_SUFFIX, >

Re: [Openvpn-devel] [PATCH v3] Use adapter index instead of name

2015-11-11 Thread Gert Doering
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 --t

[Openvpn-devel] [PATCH v3] Use adapter index instead of name

2015-11-11 Thread Lev Stipakov
v3: * Use interface= syntax. * Add forward declaration of get_adapter_index_flexible to get rid of warning. v2: * Remove netsh call which uses adapter name. After thoughtful testing turns out that "adapter name" code branch is never used. Some windows machines get weird issues with netsh when