From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Westphal Subject: Re: [PATCH 2/6] netfilter: decnet: switch hook PFs to nfproto Date: Mon, 14 May 2012 16:22:49 +0200 Message-ID: <20120514142249.GA9778@breakpoint.cc> References: <1337003799-2517-2-git-send-email-alban.crequy@collabora.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Alban Crequy , Pablo Neira Ayuso , Patrick McHardy , Vincent Sanders , Javier Martinez Canillas , netfilter-devel@vger.kernel.org, netdev@vger.kernel.org To: David Laight Return-path: Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:38121 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754499Ab2ENOWx (ORCPT ); Mon, 14 May 2012 10:22:53 -0400 Content-Disposition: inline In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: David Laight wrote: > > > NFPROTO_* constants were usually equal to PF_* constants but it is not > > necessary and it will waste less memory if we don't do so > > (see commit 7e9c6e > > "netfilter: Introduce NFPROTO_* constants") > ... > > > > static struct nf_hook_ops dnrmg_ops __read_mostly = { > > .hook = dnrmg_hook, > > - .pf = PF_DECnet, > > + .pf = NFPROTO_DECNET, > > .hooknum = NF_DN_ROUTE, > > .priority = NF_DN_PRI_DNRTMSG, > > }; > > Might it be worth renaming the .pf member to (say) .nfproto > to help avoid confusion? NFPROTO_* values are exported to userspace, so I don't think its safe to change these values.