Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253852
b: refs/heads/master
c: db898aa
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy committed Jun 16, 2011
1 parent 5d47800 commit 4fdd900
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 58d5a0257d2fd89fbe4451f704193cc95b0a9c97
refs/heads/master: db898aa2ef6529fa80891e754d353063611c77de
3 changes: 2 additions & 1 deletion trunk/net/ipv4/netfilter/ipt_ecn.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ MODULE_LICENSE("GPL");
static inline bool match_ip(const struct sk_buff *skb,
const struct ipt_ecn_info *einfo)
{
return (ip_hdr(skb)->tos & IPT_ECN_IP_MASK) == einfo->ip_ect;
return ((ip_hdr(skb)->tos & IPT_ECN_IP_MASK) == einfo->ip_ect) ^
!!(einfo->invert & IPT_ECN_OP_MATCH_IP);
}

static inline bool match_tcp(const struct sk_buff *skb,
Expand Down

0 comments on commit 4fdd900

Please sign in to comment.