]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/netfilter/nf_conntrack_standalone.c
netfilter: netns nf_conntrack: per-netns conntrack hash
[linux-2.6-omap-h63xx.git] / net / netfilter / nf_conntrack_standalone.c
index 021b505907d2e2405e1e0e5af0d8077540a2ff25..5456e4b94244435be186071b1ae13ab52a8fc9bf 100644 (file)
@@ -51,7 +51,7 @@ static struct hlist_node *ct_get_first(struct seq_file *seq)
        for (st->bucket = 0;
             st->bucket < nf_conntrack_htable_size;
             st->bucket++) {
-               n = rcu_dereference(nf_conntrack_hash[st->bucket].first);
+               n = rcu_dereference(init_net.ct.hash[st->bucket].first);
                if (n)
                        return n;
        }
@@ -67,7 +67,7 @@ static struct hlist_node *ct_get_next(struct seq_file *seq,
        while (head == NULL) {
                if (++st->bucket >= nf_conntrack_htable_size)
                        return NULL;
-               head = rcu_dereference(nf_conntrack_hash[st->bucket].first);
+               head = rcu_dereference(init_net.ct.hash[st->bucket].first);
        }
        return head;
 }