If like this index approach. Actually, we should have used indexes and not interface names from the beginning.
Original Message From: Gert Doering Sent: Thursday, 22 October 2015 18:26 To: Lev Stipakov Cc: openvpn-devel@lists.sourceforge.net Subject: Re: [Openvpn-devel] [PATCH] Use adapter index instead of name Hi, On Thu, Oct 22, 2015 at 05:29:54PM +0300, Lev Stipakov wrote: > > And with interface indexes, it works all the time? > > We have tested it on a few machines which previously have had this > problem and this patch has fixed that. We will test it for larger > audience in near future and report results. As a side note: the new IPv6 "redirect gateway ipv6" stuff also only uses adapter indexes, so I'm pretty confident that "install route and ifconfig via adapter index" is a good approach (if only to avoid spaces and national characters on the command line :-) ) - I was mainly wondering whether there is any case when the get_adapter_index() could fail on us... Going to "ifindex only" will actually make the route.c code in master less complex, as it has to deal with name-or-index today. gert -- USENET is *not* the non-clickable part of WWW! //www.muc.de/~gert/ Gert Doering - Munich, Germany g...@greenie.muc.de fax: +49-89-35655025 g...@net.informatik.tu-muenchen.de