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
/
ipv6
/
netfilter
/
ip6t_ipv6header.c
diff --git
a/net/ipv6/netfilter/ip6t_ipv6header.c
b/net/ipv6/netfilter/ip6t_ipv6header.c
index
90e1e04
..
46fbabb
100644
(file)
--- a/
net/ipv6/netfilter/ip6t_ipv6header.c
+++ b/
net/ipv6/netfilter/ip6t_ipv6header.c
@@
-125,9
+125,9
@@
static int ipv6header_mt6_check(const struct xt_mtchk_param *par)
/* invflags is 0 or 0xff in hard mode */
if ((!info->modeflag) && info->invflags != 0x00 &&
info->invflags != 0xFF)
- return
false
;
+ return
-EINVAL
;
- return
true
;
+ return
0
;
}
static struct xt_match ipv6header_mt6_reg __read_mostly = {