netfilter: decnet: switch hook PFs to nfproto
authorAlban Crequy <alban.crequy@collabora.co.uk>
Mon, 14 May 2012 03:56:35 +0000 (03:56 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 7 Jun 2012 12:58:42 +0000 (14:58 +0200)
This patch is a cleanup. Use NFPROTO_* for consistency with other
netfilter code.

Signed-off-by: Alban Crequy <alban.crequy@collabora.co.uk>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Vincent Sanders <vincent.sanders@collabora.co.uk>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/decnet/netfilter/dn_rtmsg.c

index 44b890936fc0e937dcdab69478ae6e94747a6822..e6f886255cde3427e77821436fc7de880ef458d7 100644 (file)
@@ -117,7 +117,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,
 };