Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 170651
b: refs/heads/master
c: e7db38c
h: refs/heads/master
i:
  170649: a952586
  170647: 7816d02
v: v3
  • Loading branch information
YOSHIFUJI Hideaki / 吉藤英明 authored and David S. Miller committed Oct 12, 2009
1 parent 7abe5a7 commit 0b649fd
Show file tree
Hide file tree
Showing 2 changed files with 3 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: e0c93948154328e13b4c0b0502d66af93f0fdfc4
refs/heads/master: e7db38c38fe8df1d890ae772737e27308bdc5956
4 changes: 2 additions & 2 deletions trunk/net/ipv6/sit.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,12 +569,12 @@ __be32 try_6rd(struct in6_addr *v6dst, struct ip_tunnel *tunnel)
pbw0 = tunnel->ip6rd.prefixlen >> 5;
pbi0 = tunnel->ip6rd.prefixlen & 0x1f;

d = (ntohl(tunnel->ip6rd.prefix.s6_addr32[pbw0]) << pbi0) >>
d = (ntohl(v6dst->s6_addr32[pbw0]) << pbi0) >>
tunnel->ip6rd.relay_prefixlen;

pbi1 = pbi0 - tunnel->ip6rd.relay_prefixlen;
if (pbi1 > 0)
d |= ntohl(tunnel->ip6rd.prefix.s6_addr32[pbw0 + 1]) >>
d |= ntohl(v6dst->s6_addr32[pbw0 + 1]) >>
(32 - pbi1);

dst = tunnel->ip6rd.relay_prefix | htonl(d);
Expand Down

0 comments on commit 0b649fd

Please sign in to comment.