Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19829
b: refs/heads/master
c: 878c41c
h: refs/heads/master
i:
  19827: 35f0590
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 5, 2006
1 parent 6fab74f commit 769b3f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e55f1bc5dcb60a47764f6eabd1501d2cb98fb2c4
refs/heads/master: 878c41ce5747e1b417bdd92a694c33dc4bd6ec02
5 changes: 3 additions & 2 deletions trunk/net/ipv6/netfilter/ip6t_policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ MODULE_LICENSE("GPL");
static inline int
match_xfrm_state(struct xfrm_state *x, const struct ip6t_policy_elem *e)
{
#define MATCH_ADDR(x,y,z) (!e->match.x || \
((ip6_masked_addrcmp((z), &e->x, &e->y)) == 0) ^ e->invert.x)
#define MATCH_ADDR(x,y,z) (!e->match.x || \
((!ip6_masked_addrcmp(&e->x, &e->y, z)) \
^ e->invert.x))
#define MATCH(x,y) (!e->match.x || ((e->x == (y)) ^ e->invert.x))

return MATCH_ADDR(saddr, smask, (struct in6_addr *)&x->props.saddr.a6) &&
Expand Down

0 comments on commit 769b3f7

Please sign in to comment.