git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netfilter: xtables: change matches to return error code
[safe/jmp/linux-2.6]
/
net
/
netfilter
/
xt_dscp.c
diff --git
a/net/netfilter/xt_dscp.c
b/net/netfilter/xt_dscp.c
index
295da4c
..
f355fb9
100644
(file)
--- a/
net/netfilter/xt_dscp.c
+++ b/
net/netfilter/xt_dscp.c
@@
-48,10
+48,10
@@
static int dscp_mt_check(const struct xt_mtchk_param *par)
if (info->dscp > XT_DSCP_MAX) {
pr_info("dscp %x out of range\n", info->dscp);
- return
false
;
+ return
-EINVAL
;
}
- return
true
;
+ return
0
;
}
static bool tos_mt(const struct sk_buff *skb, const struct xt_match_param *par)