Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362280
b: refs/heads/master
c: 906b1c3
h: refs/heads/master
v: v3
  • Loading branch information
Matthias Schiffer authored and Pablo Neira Ayuso committed Apr 3, 2013
1 parent 19e1e58 commit 0d956a7
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 5389090b59f7f72a30e25f5fd1fc560340543970
refs/heads/master: 906b1c394d0906a154fbdc904ca506bceb515756
2 changes: 1 addition & 1 deletion trunk/net/ipv6/netfilter/ip6t_NPT.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static bool ip6t_npt_map_pfx(const struct ip6t_npt_tginfo *npt,
if (pfx_len - i >= 32)
mask = 0;
else
mask = htonl(~((1 << (pfx_len - i)) - 1));
mask = htonl((1 << (i - pfx_len + 32)) - 1);

idx = i / 32;
addr->s6_addr32[idx] &= mask;
Expand Down

0 comments on commit 0d956a7

Please sign in to comment.