aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>2006-11-28 20:35:23 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:31:21 -0500
commit468ec44bd5a863736d955f78b8c38896f26864a1 (patch)
tree6361aee3639141ce804284dc7a28c0ee631b939c /net
parente4bd8bce3e8b53e2c0a0d5c9afbc29731e517f8d (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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/netfilter/ip_conntrack_core.c2
-rw-r--r--net/ipv4/netfilter/ip_conntrack_helper_pptp.c4
-rw-r--r--net/ipv4/netfilter/ip_conntrack_netlink.c4
-rw-r--r--net/ipv4/netfilter/ip_conntrack_standalone.c2
-rw-r--r--net/ipv4/netfilter/ip_nat_helper_pptp.c2
-rw-r--r--net/netfilter/nf_conntrack_expect.c2
-rw-r--r--net/netfilter/nf_conntrack_netlink.c4
-rw-r--r--net/netfilter/nf_conntrack_standalone.c2
8 files changed, 11 insertions, 11 deletions
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. */
235struct ip_conntrack_expect * 235struct ip_conntrack_expect *
236ip_conntrack_expect_find(const struct ip_conntrack_tuple *tuple) 236ip_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);
926EXPORT_SYMBOL(ip_conntrack_expect_alloc); 926EXPORT_SYMBOL(ip_conntrack_expect_alloc);
927EXPORT_SYMBOL(ip_conntrack_expect_put); 927EXPORT_SYMBOL(ip_conntrack_expect_put);
928EXPORT_SYMBOL_GPL(__ip_conntrack_expect_find); 928EXPORT_SYMBOL_GPL(__ip_conntrack_expect_find);
929EXPORT_SYMBOL_GPL(ip_conntrack_expect_find); 929EXPORT_SYMBOL_GPL(ip_conntrack_expect_find_get);
930EXPORT_SYMBOL(ip_conntrack_expect_related); 930EXPORT_SYMBOL(ip_conntrack_expect_related);
931EXPORT_SYMBOL(ip_conntrack_unexpect_related); 931EXPORT_SYMBOL(ip_conntrack_unexpect_related);
932EXPORT_SYMBOL_GPL(ip_conntrack_expect_list); 932EXPORT_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. */
70struct nf_conntrack_expect * 70struct nf_conntrack_expect *
71nf_conntrack_expect_find(const struct nf_conntrack_tuple *tuple) 71nf_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);
549EXPORT_SYMBOL(nf_ct_unlink_expect); 549EXPORT_SYMBOL(nf_ct_unlink_expect);
550EXPORT_SYMBOL(nf_conntrack_hash_insert); 550EXPORT_SYMBOL(nf_conntrack_hash_insert);
551EXPORT_SYMBOL(__nf_conntrack_expect_find); 551EXPORT_SYMBOL(__nf_conntrack_expect_find);
552EXPORT_SYMBOL(nf_conntrack_expect_find); 552EXPORT_SYMBOL(nf_conntrack_expect_find_get);
553EXPORT_SYMBOL(nf_conntrack_expect_list); 553EXPORT_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)