Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201092
b: refs/heads/master
c: d9a9dc6
h: refs/heads/master
v: v3
  • Loading branch information
Arnaud Ebalard authored and David S. Miller committed Jul 18, 2010
1 parent 26debc5 commit 10733f3
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: ee2e6114de3bdb1c34f3910b690f990483e981ab
refs/heads/master: d9a9dc66eb8a8fd85c8546247e7e1d6023d0eb0f
3 changes: 2 additions & 1 deletion trunk/net/ipv6/mip6.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,12 @@ static const struct xfrm_type mip6_destopt_type =

static int mip6_rthdr_input(struct xfrm_state *x, struct sk_buff *skb)
{
struct ipv6hdr *iph = ipv6_hdr(skb);
struct rt2_hdr *rt2 = (struct rt2_hdr *)skb->data;
int err = rt2->rt_hdr.nexthdr;

spin_lock(&x->lock);
if (!ipv6_addr_equal(&rt2->addr, (struct in6_addr *)x->coaddr) &&
if (!ipv6_addr_equal(&iph->daddr, (struct in6_addr *)x->coaddr) &&
!ipv6_addr_any((struct in6_addr *)x->coaddr))
err = -ENOENT;
spin_unlock(&x->lock);
Expand Down

0 comments on commit 10733f3

Please sign in to comment.