aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_TCPMSS.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-03-19 12:16:42 -0400
committerJan Engelhardt <jengelh@medozas.de>2010-03-25 11:04:33 -0400
commit135367b8f6a18507af6b9a6910a14b5699415309 (patch)
tree462e8efb6f4e634421b5c01e96b02280c512eeab /net/netfilter/xt_TCPMSS.c
parentb0f38452ff73da7e9e0ddc68cd5c6b93c897ca0d (diff)
netfilter: xtables: change xt_target.checkentry return type
Restore function signatures from bool to int so that we can report memory allocation failures or similar using -ENOMEM rather than always having to pass -EINVAL back. // <smpl> @@ type bool; identifier check, par; @@ -bool check +int check (struct xt_tgchk_param *par) { ... } // </smpl> Minus the change it does to xt_ct_find_proto. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/netfilter/xt_TCPMSS.c')
-rw-r--r--net/netfilter/xt_TCPMSS.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_TCPMSS.c b/net/netfilter/xt_TCPMSS.c
index 45161d9a9f2..70288dc3158 100644
--- a/net/netfilter/xt_TCPMSS.c
+++ b/net/netfilter/xt_TCPMSS.c
@@ -234,7 +234,7 @@ static inline bool find_syn_match(const struct xt_entry_match *m)
234 return false; 234 return false;
235} 235}
236 236
237static bool tcpmss_tg4_check(const struct xt_tgchk_param *par) 237static int tcpmss_tg4_check(const struct xt_tgchk_param *par)
238{ 238{
239 const struct xt_tcpmss_info *info = par->targinfo; 239 const struct xt_tcpmss_info *info = par->targinfo;
240 const struct ipt_entry *e = par->entryinfo; 240 const struct ipt_entry *e = par->entryinfo;
@@ -256,7 +256,7 @@ static bool tcpmss_tg4_check(const struct xt_tgchk_param *par)
256} 256}
257 257
258#if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE) 258#if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE)
259static bool tcpmss_tg6_check(const struct xt_tgchk_param *par) 259static int tcpmss_tg6_check(const struct xt_tgchk_param *par)
260{ 260{
261 const struct xt_tcpmss_info *info = par->targinfo; 261 const struct xt_tcpmss_info *info = par->targinfo;
262 const struct ip6t_entry *e = par->entryinfo; 262 const struct ip6t_entry *e = par->entryinfo;