From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next v1] net: add helpers checking if socket can be bound to nonlocal address Date: Wed, 01 Aug 2018 09:50:34 -0700 (PDT) Message-ID: <20180801.095034.551001977562633938.davem@davemloft.net> References: <20180730.090841.1368485183443140606.davem@davemloft.net> <20180731191810.5493-1-vincent@bernat.im> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: kuznet@ms2.inr.ac.ru, yoshfuji@linux-ipv6.org, netdev@vger.kernel.org, tom@herbertland.com To: vincent@bernat.im Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:49898 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407086AbeHATRL (ORCPT ); Wed, 1 Aug 2018 15:17:11 -0400 In-Reply-To: <20180731191810.5493-1-vincent@bernat.im> Sender: netdev-owner@vger.kernel.org List-ID: From: Vincent Bernat Date: Tue, 31 Jul 2018 21:18:11 +0200 > The construction "net->ipv4.sysctl_ip_nonlocal_bind || inet->freebind > || inet->transparent" is present three times and its IPv6 counterpart > is also present three times. We introduce two small helpers to > characterize these tests uniformly. > > Signed-off-by: Vincent Bernat Looks great, thanks for doing this. Applied.