]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
netfilter: queue: use NFPROTO_ for queue callsites
authorJan Engelhardt <jengelh@medozas.de>
Tue, 14 Apr 2009 12:26:49 +0000 (14:26 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Fri, 8 May 2009 08:30:46 +0000 (10:30 +0200)
af is an nfproto.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
net/ipv4/netfilter/ip_queue.c
net/ipv6/netfilter/ip6_queue.c
net/netfilter/nf_queue.c

index 5f22c91c6e1518c254d3728a53ce65cb409b26d5..c156db215987638c8b06a6c5163395715e91fbe3 100644 (file)
@@ -596,7 +596,7 @@ static int __init ip_queue_init(void)
 #ifdef CONFIG_SYSCTL
        ipq_sysctl_header = register_sysctl_paths(net_ipv4_ctl_path, ipq_table);
 #endif
-       status = nf_register_queue_handler(PF_INET, &nfqh);
+       status = nf_register_queue_handler(NFPROTO_IPV4, &nfqh);
        if (status < 0) {
                printk(KERN_ERR "ip_queue: failed to register queue handler\n");
                goto cleanup_sysctl;
index b693f841aeb4f019804778772b7417c9558aa7b5..1cf3f0c6a9598294b74eacf35b66024ad240c759 100644 (file)
@@ -598,7 +598,7 @@ static int __init ip6_queue_init(void)
 #ifdef CONFIG_SYSCTL
        ipq_sysctl_header = register_sysctl_paths(net_ipv6_ctl_path, ipq_table);
 #endif
-       status = nf_register_queue_handler(PF_INET6, &nfqh);
+       status = nf_register_queue_handler(NFPROTO_IPV6, &nfqh);
        if (status < 0) {
                printk(KERN_ERR "ip6_queue: failed to register queue handler\n");
                goto cleanup_sysctl;
index 4f2310c93e015fb4350d4d641faf0b204010951a..3a6fd77f7761903ac46f83c77a49fd7bd58976d7 100644 (file)
@@ -204,10 +204,10 @@ int nf_queue(struct sk_buff *skb,
                                  queuenum);
 
        switch (pf) {
-       case AF_INET:
+       case NFPROTO_IPV4:
                skb->protocol = htons(ETH_P_IP);
                break;
-       case AF_INET6:
+       case NFPROTO_IPV6:
                skb->protocol = htons(ETH_P_IPV6);
                break;
        }