From patchwork Mon May 14 13:56:35 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/6] netfilter: decnet: switch hook PFs to nfproto Date: Mon, 14 May 2012 03:56:35 -0000 From: Alban Crequy X-Patchwork-Id: 159023 Message-Id: <1337003799-2517-2-git-send-email-alban.crequy@collabora.co.uk> To: Pablo Neira Ayuso , Patrick McHardy Cc: Vincent Sanders , Javier Martinez Canillas , netfilter-devel@vger.kernel.org, netdev@vger.kernel.org, Alban Crequy 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") Signed-off-by: Alban Crequy Reviewed-by: Javier Martinez Canillas Reviewed-by: Vincent Sanders --- net/decnet/netfilter/dn_rtmsg.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/decnet/netfilter/dn_rtmsg.c b/net/decnet/netfilter/dn_rtmsg.c index 1531135..7fb7250 100644 --- a/net/decnet/netfilter/dn_rtmsg.c +++ b/net/decnet/netfilter/dn_rtmsg.c @@ -118,7 +118,7 @@ static inline void dnrmg_receive_user_skb(struct sk_buff *skb) 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, };