aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2007-07-08 01:28:42 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-07-11 01:17:41 -0400
commit330f7db5e578e1e298ba3a41748e5ea333a64a2b (patch)
tree1557656cf800dcee7915cb41c94d4ce644947c61 /net/netfilter
parentf205c5e0c28aa7e0fb6eaaa66e97928f9d9e6994 (diff)
[NETFILTER]: nf_conntrack: remove 'ignore_conntrack' argument from nf_conntrack_find_get
All callers pass NULL, this also doesn't seem very useful for modules. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/nf_conntrack_core.c7
-rw-r--r--net/netfilter/nf_conntrack_netlink.c6
-rw-r--r--net/netfilter/nf_conntrack_pptp.c2
3 files changed, 7 insertions, 8 deletions
diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
index 992d0ef31fa3..8ed761cc0819 100644
--- a/net/netfilter/nf_conntrack_core.c
+++ b/net/netfilter/nf_conntrack_core.c
@@ -244,13 +244,12 @@ EXPORT_SYMBOL_GPL(__nf_conntrack_find);
244 244
245/* Find a connection corresponding to a tuple. */ 245/* Find a connection corresponding to a tuple. */
246struct nf_conntrack_tuple_hash * 246struct nf_conntrack_tuple_hash *
247nf_conntrack_find_get(const struct nf_conntrack_tuple *tuple, 247nf_conntrack_find_get(const struct nf_conntrack_tuple *tuple)
248 const struct nf_conn *ignored_conntrack)
249{ 248{
250 struct nf_conntrack_tuple_hash *h; 249 struct nf_conntrack_tuple_hash *h;
251 250
252 read_lock_bh(&nf_conntrack_lock); 251 read_lock_bh(&nf_conntrack_lock);
253 h = __nf_conntrack_find(tuple, ignored_conntrack); 252 h = __nf_conntrack_find(tuple, NULL);
254 if (h) 253 if (h)
255 atomic_inc(&nf_ct_tuplehash_to_ctrack(h)->ct_general.use); 254 atomic_inc(&nf_ct_tuplehash_to_ctrack(h)->ct_general.use);
256 read_unlock_bh(&nf_conntrack_lock); 255 read_unlock_bh(&nf_conntrack_lock);
@@ -574,7 +573,7 @@ resolve_normal_ct(struct sk_buff *skb,
574 } 573 }
575 574
576 /* look for tuple match */ 575 /* look for tuple match */
577 h = nf_conntrack_find_get(&tuple, NULL); 576 h = nf_conntrack_find_get(&tuple);
578 if (!h) { 577 if (!h) {
579 h = init_conntrack(&tuple, l3proto, l4proto, skb, dataoff); 578 h = init_conntrack(&tuple, l3proto, l4proto, skb, dataoff);
580 if (!h) 579 if (!h)
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c
index 0627559ca470..d310ec866194 100644
--- a/net/netfilter/nf_conntrack_netlink.c
+++ b/net/netfilter/nf_conntrack_netlink.c
@@ -689,7 +689,7 @@ ctnetlink_del_conntrack(struct sock *ctnl, struct sk_buff *skb,
689 if (err < 0) 689 if (err < 0)
690 return err; 690 return err;
691 691
692 h = nf_conntrack_find_get(&tuple, NULL); 692 h = nf_conntrack_find_get(&tuple);
693 if (!h) 693 if (!h)
694 return -ENOENT; 694 return -ENOENT;
695 695
@@ -744,7 +744,7 @@ ctnetlink_get_conntrack(struct sock *ctnl, struct sk_buff *skb,
744 if (err < 0) 744 if (err < 0)
745 return err; 745 return err;
746 746
747 h = nf_conntrack_find_get(&tuple, NULL); 747 h = nf_conntrack_find_get(&tuple);
748 if (!h) 748 if (!h)
749 return -ENOENT; 749 return -ENOENT;
750 750
@@ -1426,7 +1426,7 @@ ctnetlink_create_expect(struct nfattr *cda[], u_int8_t u3)
1426 return err; 1426 return err;
1427 1427
1428 /* Look for master conntrack of this expectation */ 1428 /* Look for master conntrack of this expectation */
1429 h = nf_conntrack_find_get(&master_tuple, NULL); 1429 h = nf_conntrack_find_get(&master_tuple);
1430 if (!h) 1430 if (!h)
1431 return -ENOENT; 1431 return -ENOENT;
1432 ct = nf_ct_tuplehash_to_ctrack(h); 1432 ct = nf_ct_tuplehash_to_ctrack(h);
diff --git a/net/netfilter/nf_conntrack_pptp.c b/net/netfilter/nf_conntrack_pptp.c
index 115bcb5d5a7c..da36c48177e9 100644
--- a/net/netfilter/nf_conntrack_pptp.c
+++ b/net/netfilter/nf_conntrack_pptp.c
@@ -146,7 +146,7 @@ static int destroy_sibling_or_exp(const struct nf_conntrack_tuple *t)
146 DEBUGP("trying to timeout ct or exp for tuple "); 146 DEBUGP("trying to timeout ct or exp for tuple ");
147 NF_CT_DUMP_TUPLE(t); 147 NF_CT_DUMP_TUPLE(t);
148 148
149 h = nf_conntrack_find_get(t, NULL); 149 h = nf_conntrack_find_get(t);
150 if (h) { 150 if (h) {
151 sibling = nf_ct_tuplehash_to_ctrack(h); 151 sibling = nf_ct_tuplehash_to_ctrack(h);
152 DEBUGP("setting timeout of conntrack %p to 0\n", sibling); 152 DEBUGP("setting timeout of conntrack %p to 0\n", sibling);