- bound vnet mods by #ifdef
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 1 Feb 2005 03:23:33 +0000 (03:23 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 1 Feb 2005 03:23:33 +0000 (03:23 +0000)
- remove deprecated code

net/ipv4/netfilter/ip_conntrack_core.c

index 008faaf..c96655b 100644 (file)
@@ -555,15 +555,11 @@ init_conntrack(const struct ip_conntrack_tuple *tuple,
        conntrack->ct_general.destroy = destroy_conntrack;
        conntrack->tuplehash[IP_CT_DIR_ORIGINAL].tuple = *tuple;
        conntrack->tuplehash[IP_CT_DIR_ORIGINAL].ctrack = conntrack;
-       conntrack->xid[IP_CT_DIR_ORIGINAL] = -1;
        conntrack->tuplehash[IP_CT_DIR_REPLY].tuple = repl_tuple;
        conntrack->tuplehash[IP_CT_DIR_REPLY].ctrack = conntrack;
+#if defined(CONFIG_VNET) || defined(CONFIG_VNET_MODULE)
+       conntrack->xid[IP_CT_DIR_ORIGINAL] = -1;
        conntrack->xid[IP_CT_DIR_REPLY] = -1;
-
-#warning MEF removed initialization of conntrack->infos structure, as this structure no longer exists in 2.6.9-1.11_FC.
-#if 0
-       for (i=0; i < IP_CT_NUMBER; i++)
-               conntrack->infos[i].master = &conntrack->ct_general;
 #endif
 
        if (!protocol->new(conntrack, skb)) {