References: <1480545687-19365-1-git-send-email-davids@...515...> From: Arne Schwabe Message-ID: Date: Thu, 1 Dec 2016 13:31:31 +0100 MIME-Version: 1.0 In-Reply-To: <1480545687-19365-1-git-send-email-davids@...515...> Subject: Re: [Openvpn-devel] [PATCH] push: Provide a warning if --ifconfig-push have argument mismatch with --topology List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit To: David Sommerseth , openvpn-devel@lists.sourceforge.net Am 30.11.16 um 23:41 schrieb David Sommerseth: > This adds a warning to the log file if --topology is configured to use > subnet or net30 and the 'subnet mask' argument of an --ifconfig-push option > is not an subnet mask. The check done is to ensure the first octet is 0xff (255) > > But way you actually want to test is if topology == subnet or net30: if gateway not in net(ip, mask): print ("Your gw and ip and netmask disagree!) right? And isn't there code that gets executed for the client side that can be disabled by ifconfig-nowarn. Can we reuse that code? Arne