diff options
author | Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> | 2006-11-28 20:35:23 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:31:21 -0500 |
commit | 468ec44bd5a863736d955f78b8c38896f26864a1 (patch) | |
tree | 6361aee3639141ce804284dc7a28c0ee631b939c | |
parent | e4bd8bce3e8b53e2c0a0d5c9afbc29731e517f8d (diff) |
[NETFILTER]: conntrack: add '_get' to {ip, nf}_conntrack_expect_find
We usually uses 'xxx_find_get' for function which increments
reference count.
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Patrick McHardy <kaber@trash.net>
-rw-r--r-- | include/linux/netfilter_ipv4/ip_conntrack.h | 2 | ||||
-rw-r--r-- | include/net/netfilter/nf_conntrack_expect.h | 2 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_core.c | 2 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_helper_pptp.c | 4 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_netlink.c | 4 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_conntrack_standalone.c | 2 | ||||
-rw-r--r-- | net/ipv4/netfilter/ip_nat_helper_pptp.c | 2 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_expect.c | 2 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 4 | ||||
-rw-r--r-- | net/netfilter/nf_conntrack_standalone.c | 2 |
10 files changed, 13 insertions, 13 deletions
diff --git a/include/linux/netfilter_ipv4/ip_conntrack.h b/include/linux/netfilter_ipv4/ip_conntrack.h index 64e868034c4a..61da56941dce 100644 --- a/include/linux/netfilter_ipv4/ip_conntrack.h +++ b/include/linux/netfilter_ipv4/ip_conntrack.h | |||
@@ -277,7 +277,7 @@ extern struct ip_conntrack_expect * | |||
277 | __ip_conntrack_expect_find(const struct ip_conntrack_tuple *tuple); | 277 | __ip_conntrack_expect_find(const struct ip_conntrack_tuple *tuple); |
278 | 278 | ||
279 | extern struct ip_conntrack_expect * | 279 | extern struct ip_conntrack_expect * |
280 | ip_conntrack_expect_find(const struct ip_conntrack_tuple *tuple); | 280 | ip_conntrack_expect_find_get(const struct ip_conntrack_tuple *tuple); |
281 | 281 | ||
282 | extern struct ip_conntrack_tuple_hash * | 282 | extern struct ip_conntrack_tuple_hash * |
283 | __ip_conntrack_find(const struct ip_conntrack_tuple *tuple, | 283 | __ip_conntrack_find(const struct ip_conntrack_tuple *tuple, |
diff --git a/include/net/netfilter/nf_conntrack_expect.h b/include/net/netfilter/nf_conntrack_expect.h index 5aa483e03455..2d335f024c85 100644 --- a/include/net/netfilter/nf_conntrack_expect.h +++ b/include/net/netfilter/nf_conntrack_expect.h | |||
@@ -53,7 +53,7 @@ struct nf_conntrack_expect * | |||
53 | __nf_conntrack_expect_find(const struct nf_conntrack_tuple *tuple); | 53 | __nf_conntrack_expect_find(const struct nf_conntrack_tuple *tuple); |
54 | 54 | ||
55 | struct nf_conntrack_expect * | 55 | struct nf_conntrack_expect * |
56 | nf_conntrack_expect_find(const struct nf_conntrack_tuple *tuple); | 56 | nf_conntrack_expect_find_get(const struct nf_conntrack_tuple *tuple); |
57 | 57 | ||
58 | struct nf_conntrack_expect * | 58 | struct nf_conntrack_expect * |
59 | find_expectation(const struct nf_conntrack_tuple *tuple); | 59 | find_expectation(const struct nf_conntrack_tuple *tuple); |
diff --git a/net/ipv4/netfilter/ip_conntrack_core.c b/net/ipv4/netfilter/ip_conntrack_core.c index 8b848aa77bfc..4d1f954d459b 100644 --- a/net/ipv4/netfilter/ip_conntrack_core.c +++ b/net/ipv4/netfilter/ip_conntrack_core.c | |||
@@ -233,7 +233,7 @@ __ip_conntrack_expect_find(const struct ip_conntrack_tuple *tuple) | |||
233 | 233 | ||
234 | /* Just find a expectation corresponding to a tuple. */ | 234 | /* Just find a expectation corresponding to a tuple. */ |
235 | struct ip_conntrack_expect * | 235 | struct ip_conntrack_expect * |
236 | ip_conntrack_expect_find(const struct ip_conntrack_tuple *tuple) | 236 | ip_conntrack_expect_find_get(const struct ip_conntrack_tuple *tuple) |
237 | { | 237 | { |
238 | struct ip_conntrack_expect *i; | 238 | struct ip_conntrack_expect *i; |
239 | 239 | ||
diff --git a/net/ipv4/netfilter/ip_conntrack_helper_pptp.c b/net/ipv4/netfilter/ip_conntrack_helper_pptp.c index a2af5e0c7f99..a5c057bcecf4 100644 --- a/net/ipv4/netfilter/ip_conntrack_helper_pptp.c +++ b/net/ipv4/netfilter/ip_conntrack_helper_pptp.c | |||
@@ -142,7 +142,7 @@ static void pptp_expectfn(struct ip_conntrack *ct, | |||
142 | DEBUGP("trying to unexpect other dir: "); | 142 | DEBUGP("trying to unexpect other dir: "); |
143 | DUMP_TUPLE(&inv_t); | 143 | DUMP_TUPLE(&inv_t); |
144 | 144 | ||
145 | exp_other = ip_conntrack_expect_find(&inv_t); | 145 | exp_other = ip_conntrack_expect_find_get(&inv_t); |
146 | if (exp_other) { | 146 | if (exp_other) { |
147 | /* delete other expectation. */ | 147 | /* delete other expectation. */ |
148 | DEBUGP("found\n"); | 148 | DEBUGP("found\n"); |
@@ -176,7 +176,7 @@ static int destroy_sibling_or_exp(const struct ip_conntrack_tuple *t) | |||
176 | ip_conntrack_put(sibling); | 176 | ip_conntrack_put(sibling); |
177 | return 1; | 177 | return 1; |
178 | } else { | 178 | } else { |
179 | exp = ip_conntrack_expect_find(t); | 179 | exp = ip_conntrack_expect_find_get(t); |
180 | if (exp) { | 180 | if (exp) { |
181 | DEBUGP("unexpect_related of expect %p\n", exp); | 181 | DEBUGP("unexpect_related of expect %p\n", exp); |
182 | ip_conntrack_unexpect_related(exp); | 182 | ip_conntrack_unexpect_related(exp); |
diff --git a/net/ipv4/netfilter/ip_conntrack_netlink.c b/net/ipv4/netfilter/ip_conntrack_netlink.c index 1bb8ed33c5bc..3d277aa869dd 100644 --- a/net/ipv4/netfilter/ip_conntrack_netlink.c +++ b/net/ipv4/netfilter/ip_conntrack_netlink.c | |||
@@ -1256,7 +1256,7 @@ ctnetlink_get_expect(struct sock *ctnl, struct sk_buff *skb, | |||
1256 | if (err < 0) | 1256 | if (err < 0) |
1257 | return err; | 1257 | return err; |
1258 | 1258 | ||
1259 | exp = ip_conntrack_expect_find(&tuple); | 1259 | exp = ip_conntrack_expect_find_get(&tuple); |
1260 | if (!exp) | 1260 | if (!exp) |
1261 | return -ENOENT; | 1261 | return -ENOENT; |
1262 | 1262 | ||
@@ -1309,7 +1309,7 @@ ctnetlink_del_expect(struct sock *ctnl, struct sk_buff *skb, | |||
1309 | return err; | 1309 | return err; |
1310 | 1310 | ||
1311 | /* bump usage count to 2 */ | 1311 | /* bump usage count to 2 */ |
1312 | exp = ip_conntrack_expect_find(&tuple); | 1312 | exp = ip_conntrack_expect_find_get(&tuple); |
1313 | if (!exp) | 1313 | if (!exp) |
1314 | return -ENOENT; | 1314 | return -ENOENT; |
1315 | 1315 | ||
diff --git a/net/ipv4/netfilter/ip_conntrack_standalone.c b/net/ipv4/netfilter/ip_conntrack_standalone.c index 02135756562e..2df67538ffb0 100644 --- a/net/ipv4/netfilter/ip_conntrack_standalone.c +++ b/net/ipv4/netfilter/ip_conntrack_standalone.c | |||
@@ -926,7 +926,7 @@ EXPORT_SYMBOL(__ip_ct_refresh_acct); | |||
926 | EXPORT_SYMBOL(ip_conntrack_expect_alloc); | 926 | EXPORT_SYMBOL(ip_conntrack_expect_alloc); |
927 | EXPORT_SYMBOL(ip_conntrack_expect_put); | 927 | EXPORT_SYMBOL(ip_conntrack_expect_put); |
928 | EXPORT_SYMBOL_GPL(__ip_conntrack_expect_find); | 928 | EXPORT_SYMBOL_GPL(__ip_conntrack_expect_find); |
929 | EXPORT_SYMBOL_GPL(ip_conntrack_expect_find); | 929 | EXPORT_SYMBOL_GPL(ip_conntrack_expect_find_get); |
930 | EXPORT_SYMBOL(ip_conntrack_expect_related); | 930 | EXPORT_SYMBOL(ip_conntrack_expect_related); |
931 | EXPORT_SYMBOL(ip_conntrack_unexpect_related); | 931 | EXPORT_SYMBOL(ip_conntrack_unexpect_related); |
932 | EXPORT_SYMBOL_GPL(ip_conntrack_expect_list); | 932 | EXPORT_SYMBOL_GPL(ip_conntrack_expect_list); |
diff --git a/net/ipv4/netfilter/ip_nat_helper_pptp.c b/net/ipv4/netfilter/ip_nat_helper_pptp.c index 329fdcd7d702..acf55d863100 100644 --- a/net/ipv4/netfilter/ip_nat_helper_pptp.c +++ b/net/ipv4/netfilter/ip_nat_helper_pptp.c | |||
@@ -101,7 +101,7 @@ static void pptp_nat_expected(struct ip_conntrack *ct, | |||
101 | 101 | ||
102 | DEBUGP("trying to unexpect other dir: "); | 102 | DEBUGP("trying to unexpect other dir: "); |
103 | DUMP_TUPLE(&t); | 103 | DUMP_TUPLE(&t); |
104 | other_exp = ip_conntrack_expect_find(&t); | 104 | other_exp = ip_conntrack_expect_find_get(&t); |
105 | if (other_exp) { | 105 | if (other_exp) { |
106 | ip_conntrack_unexpect_related(other_exp); | 106 | ip_conntrack_unexpect_related(other_exp); |
107 | ip_conntrack_expect_put(other_exp); | 107 | ip_conntrack_expect_put(other_exp); |
diff --git a/net/netfilter/nf_conntrack_expect.c b/net/netfilter/nf_conntrack_expect.c index 79cfd79a42f0..aa5903e4da11 100644 --- a/net/netfilter/nf_conntrack_expect.c +++ b/net/netfilter/nf_conntrack_expect.c | |||
@@ -68,7 +68,7 @@ __nf_conntrack_expect_find(const struct nf_conntrack_tuple *tuple) | |||
68 | 68 | ||
69 | /* Just find a expectation corresponding to a tuple. */ | 69 | /* Just find a expectation corresponding to a tuple. */ |
70 | struct nf_conntrack_expect * | 70 | struct nf_conntrack_expect * |
71 | nf_conntrack_expect_find(const struct nf_conntrack_tuple *tuple) | 71 | nf_conntrack_expect_find_get(const struct nf_conntrack_tuple *tuple) |
72 | { | 72 | { |
73 | struct nf_conntrack_expect *i; | 73 | struct nf_conntrack_expect *i; |
74 | 74 | ||
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index dc0830220130..7357b8f47acd 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c | |||
@@ -1284,7 +1284,7 @@ ctnetlink_get_expect(struct sock *ctnl, struct sk_buff *skb, | |||
1284 | if (err < 0) | 1284 | if (err < 0) |
1285 | return err; | 1285 | return err; |
1286 | 1286 | ||
1287 | exp = nf_conntrack_expect_find(&tuple); | 1287 | exp = nf_conntrack_expect_find_get(&tuple); |
1288 | if (!exp) | 1288 | if (!exp) |
1289 | return -ENOENT; | 1289 | return -ENOENT; |
1290 | 1290 | ||
@@ -1339,7 +1339,7 @@ ctnetlink_del_expect(struct sock *ctnl, struct sk_buff *skb, | |||
1339 | return err; | 1339 | return err; |
1340 | 1340 | ||
1341 | /* bump usage count to 2 */ | 1341 | /* bump usage count to 2 */ |
1342 | exp = nf_conntrack_expect_find(&tuple); | 1342 | exp = nf_conntrack_expect_find_get(&tuple); |
1343 | if (!exp) | 1343 | if (!exp) |
1344 | return -ENOENT; | 1344 | return -ENOENT; |
1345 | 1345 | ||
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index 3db24f4f0f5b..be94b6359725 100644 --- a/net/netfilter/nf_conntrack_standalone.c +++ b/net/netfilter/nf_conntrack_standalone.c | |||
@@ -549,7 +549,7 @@ EXPORT_SYMBOL(__nf_conntrack_find); | |||
549 | EXPORT_SYMBOL(nf_ct_unlink_expect); | 549 | EXPORT_SYMBOL(nf_ct_unlink_expect); |
550 | EXPORT_SYMBOL(nf_conntrack_hash_insert); | 550 | EXPORT_SYMBOL(nf_conntrack_hash_insert); |
551 | EXPORT_SYMBOL(__nf_conntrack_expect_find); | 551 | EXPORT_SYMBOL(__nf_conntrack_expect_find); |
552 | EXPORT_SYMBOL(nf_conntrack_expect_find); | 552 | EXPORT_SYMBOL(nf_conntrack_expect_find_get); |
553 | EXPORT_SYMBOL(nf_conntrack_expect_list); | 553 | EXPORT_SYMBOL(nf_conntrack_expect_list); |
554 | #if defined(CONFIG_NF_CT_NETLINK) || \ | 554 | #if defined(CONFIG_NF_CT_NETLINK) || \ |
555 | defined(CONFIG_NF_CT_NETLINK_MODULE) | 555 | defined(CONFIG_NF_CT_NETLINK_MODULE) |