Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755809Ab1DNFyo (ORCPT ); Thu, 14 Apr 2011 01:54:44 -0400 Received: from kirsty.vergenet.net ([202.4.237.240]:32994 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754267Ab1DNFym (ORCPT ); Thu, 14 Apr 2011 01:54:42 -0400 Date: Thu, 14 Apr 2011 09:53:11 +0800 From: Simon Horman To: Alexey Dobriyan Cc: Vasiliy Kulikov , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Pavel Kankovsky , Solar Designer , Kees Cook , Dan Rosenberg , Eugene Teo , Nelson Elhage , "David S. Miller" , Alexey Kuznetsov , Pekka Savola , James Morris , Hideaki YOSHIFUJI , Patrick McHardy Subject: Re: [PATCH] net: ipv4: add IPPROTO_ICMP socket kind Message-ID: <20110414015310.GC5167@verge.net.au> References: <20110409101514.GA4262@albatros> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organisation: Horms Solutions Ltd. User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1057 Lines: 24 On Wed, Apr 13, 2011 at 01:29:49PM +0300, Alexey Dobriyan wrote: > On Sat, Apr 9, 2011 at 1:15 PM, Vasiliy Kulikov wrote: [snip] > > @@ -714,8 +790,22 @@ static __net_init int ipv4_sysctl_init_net(struct net *net) > >                        &net->ipv4.sysctl_icmp_ratemask; > >                table[6].data = > >                        &net->ipv4.sysctl_rt_cache_rebuild_count; > > +#ifdef CONFIG_IP_PING > > +               table[7].data = > > +                       &net->ipv4.sysctl_ping_group_range; > > +#endif > > Now I understand it's not related, but next sysctl will have > "table[8].data = ..." line which is off-by-one if CONFIG_IP_PING=n. Another good reason for the code to be non-optoinal and not to have CONFIG_IP_PING. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/