Skip to content

Commit

Permalink
netfilter: ipv4, defrag: switch hook PFs to nfproto
Browse files Browse the repository at this point in the history
This patch is a cleanup. Use NFPROTO_* for consistency with other
netfilter code.

Signed-off-by: Alban Crequy <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Reviewed-by: Vincent Sanders <[email protected]>
  • Loading branch information
alban authored and ummakynes committed Jun 7, 2012
1 parent aa740f4 commit 89a48e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/netfilter/nf_defrag_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ static struct nf_hook_ops ipv4_defrag_ops[] = {
{
.hook = ipv4_conntrack_defrag,
.owner = THIS_MODULE,
.pf = PF_INET,
.pf = NFPROTO_IPV4,
.hooknum = NF_INET_PRE_ROUTING,
.priority = NF_IP_PRI_CONNTRACK_DEFRAG,
},
{
.hook = ipv4_conntrack_defrag,
.owner = THIS_MODULE,
.pf = PF_INET,
.pf = NFPROTO_IPV4,
.hooknum = NF_INET_LOCAL_OUT,
.priority = NF_IP_PRI_CONNTRACK_DEFRAG,
},
Expand Down

0 comments on commit 89a48e3

Please sign in to comment.