Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760177Ab1EABj0 (ORCPT ); Sat, 30 Apr 2011 21:39:26 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:62471 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758179Ab1EABhy (ORCPT ); Sat, 30 Apr 2011 21:37:54 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=YlvOr7/yig9G8uhg4/8C5VldwWvmfPpsCUHFlv8JWPeFz3eCIkOOuScj5RpPiPY2bZ JMEswzUiiXPB1Gn0+7yKqmEE500yOGskCuD9Ee4VmykoIB+wTQzWbHC4FDi5Eww/VmfS JajCffuHotmefphCyw70GktiJxkI49ve3Abfk= From: Lucian Adrian Grijincu To: linux-kernel@vger.kernel.org Cc: Lucian Adrian Grijincu Subject: [PATCH 52/69] sysctl: remove .child from net/ipv4/neigh table Date: Sun, 1 May 2011 03:36:22 +0200 Message-Id: <1304213799-10257-53-git-send-email-lucian.grijincu@gmail.com> X-Mailer: git-send-email 1.7.5.134.g1c08b In-Reply-To: <1304213799-10257-1-git-send-email-lucian.grijincu@gmail.com> References: <1304213799-10257-1-git-send-email-lucian.grijincu@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1425 Lines: 53 Signed-off-by: Lucian Adrian Grijincu --- net/ipv6/sysctl_net_ipv6.c | 18 +++++++----------- 1 files changed, 7 insertions(+), 11 deletions(-) diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index 6dcf5e7..a0d9916 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c @@ -17,16 +17,6 @@ static struct ctl_table empty[1]; -static ctl_table ipv6_static_skeleton[] = { - { - .procname = "neigh", - .maxlen = 0, - .mode = 0555, - .child = empty, - }, - { } -}; - static ctl_table ipv6_table_template[] = { { .procname = "route", @@ -160,11 +150,17 @@ void ipv6_sysctl_unregister(void) unregister_pernet_subsys(&ipv6_sysctl_net_ops); } +static const struct ctl_path net_ipv6_neigh_path[] = { + { .procname = "net", }, + { .procname = "ipv6", }, + { .procname = "neigh", }, + { }, +}; static struct ctl_table_header *ip6_base; int ipv6_static_sysctl_register(void) { - ip6_base = register_sysctl_paths(net_ipv6_ctl_path, ipv6_static_skeleton); + ip6_base = register_sysctl_paths(net_ipv6_neigh_path, empty); if (ip6_base == NULL) return -ENOMEM; return 0; -- 1.7.5.134.g1c08b -- 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/