References: <20170504173605.8269-1-valdikss@...277...> <9cc5162b-d81b-9286-e715-e6c7d807385d@...277...> From: ValdikSS Message-ID: Date: Wed, 10 May 2017 21:49:32 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------7C8821A3A665D1754E0A0655" Content-Language: en-GB Subject: Re: [Openvpn-devel] [PATCH] Set a low interface metric for tap adapter when block-outside-dns is in use List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Selva Nair Cc: "openvpn-devel@lists.sourceforge.net" This is a multi-part message in MIME format. --------------7C8821A3A665D1754E0A0655 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Added it. Can't compile for 32 bit, I tried multiple times but can't wrestle down build system to compile my version from git. It never finds OpenSSL. It successfully compiles for 64 bit. Please check v2. On 10.05.2017 19:40, Selva Nair wrote: > > On Wed, May 10, 2017 at 12:08 PM, ValdikSS > wrote: > > > In block-dns.c where "WFP-related defines and GUIDs not in mingw32" are defined, add this > > VOID NETIOAPI_API_ > InitializeIpInterfaceEntry(PMIB_IPINTERFACE_ROW Row ); > > Do a test build for 32 bit to see now this function compiles without warnings > and links without errors. 32 bit is a more stringent test because only in this > case the linker will fail to find stdcall functions without proper declarations. > > That should be it. > > Selva > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Openvpn-devel mailing list > Openvpn-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openvpn-devel --------------7C8821A3A665D1754E0A0655 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Added it. Can't compile for 32 bit, I tried multiple times but can't wrestle down build system to compile my version from git. It never finds OpenSSL.
It successfully compiles for 64 bit.

Please check v2.

On 10.05.2017 19:40, Selva Nair wrote:

On Wed, May 10, 2017 at 12:08 PM, ValdikSS <valdikss@...277...> wrote:


In block-dns.c where "WFP-related defines and GUIDs not in mingw32" are defined, add this

VOID NETIOAPI_API_
InitializeIpInterfaceEntry(PMIB_IPINTERFACE_ROW Row );

Do a test build for 32 bit to see now this function compiles without warnings
and links without errors. 32 bit is a more stringent test because only in this
case the linker will fail to find stdcall functions without proper declarations.

That should be it.

Selva


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

--------------7C8821A3A665D1754E0A0655--