Skip to contentSkip to conversation

net/ipv4/netfilter/ip_nat_standalone.c 2.6.17-rc2-git5

PATCH New Anne Thrax 1 participant 1 message Apr 24, 2006 Kernel janitors

lore
Share & tools
lore

Anne Thrax

author
#0 lore raw

PATCH 1/1 net/ipv4/netfilter/ip_nat_standalone.c 2.6.17-rc2-git5

Don't declare some variables if CONFIG_XFRM isn't defined. If CONFIG_XFRM isn't defined, they arent' used.

---
/usr/src/linux-2.6.17-rc2-git5-orig/net/ipv4/netfilter/ip_nat_standalone.c

2006-04-23 16:47:53.000000000 -0500
+++ 
/usr/src/linux-2.6.17-rc2-git5/net/ipv4/netfilter/ip_nat_standalone.c       
2006-04-24 16:24:56.000000000 -0500

@@ -219,8 +219,6 @@
const struct net_device *out,
int (*okfn)(struct sk_buff *))
{
- struct ip_conntrack *ct;

-       enum ip_conntrack_info ctinfo;
        unsigned int ret;

        /* root is playing with raw sockets. */

@@ -230,6 +228,10 @@

        ret = ip_nat_fn(hooknum, pskb, in, out, okfn);

#ifdef CONFIG_XFRM
+
+ struct ip_conntrack *ct;
+ enum ip_conntrack_info ctinfo;
+

        if (ret != NF_DROP && ret != NF_STOLEN
            && (ct = ip_conntrack_get(*pskb, &ctinfo)) != NULL) {
                enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo);

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors