projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0f36e
)
netfilter: ipt_addrtype: Fix matching of inverted destination address type
author
Anders Grafström
<
[email protected]
>
Tue, 19 Aug 2008 04:29:57 +0000
(21:29 -0700)
committer
David S. Miller
<
[email protected]
>
Tue, 19 Aug 2008 04:29:57 +0000
(21:29 -0700)
This patch fixes matching of inverted destination address type.
Signed-off-by: Anders Grafström <
[email protected]
>
Signed-off-by: Patrick McHardy <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/netfilter/ipt_addrtype.c
patch
|
blob
|
history
diff --git
a/net/ipv4/netfilter/ipt_addrtype.c
b/net/ipv4/netfilter/ipt_addrtype.c
index 49587a497229e68aa9e1d49e7dcd6f2e78e8afea..462a22c9787779d71d812ffe0f7121b91b666995 100644
(file)
--- a/
net/ipv4/netfilter/ipt_addrtype.c
+++ b/
net/ipv4/netfilter/ipt_addrtype.c
@@
-70,7
+70,7
@@
addrtype_mt_v1(const struct sk_buff *skb, const struct net_device *in,
(info->flags & IPT_ADDRTYPE_INVERT_SOURCE);
if (ret && info->dest)
ret &= match_type(dev, iph->daddr, info->dest) ^
- (info->flags & IPT_ADDRTYPE_INVERT_DEST);
+
!!
(info->flags & IPT_ADDRTYPE_INVERT_DEST);
return ret;
}