Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122385
b: refs/heads/master
c: 9f40ac7
h: refs/heads/master
i:
  122383: 2d399a1
v: v3
  • Loading branch information
Eric Leblond authored and Patrick McHardy committed Nov 25, 2008
1 parent ea47112 commit b664acf
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 5f145e44ae09f629d25536b2947a91e9c01bddcb
refs/heads/master: 9f40ac713c49fb6ca655550b620edc85c445d743
5 changes: 4 additions & 1 deletion trunk/net/ipv6/netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ EXPORT_SYMBOL(ip6_route_me_harder);
struct ip6_rt_info {
struct in6_addr daddr;
struct in6_addr saddr;
u_int32_t mark;
};

static void nf_ip6_saveroute(const struct sk_buff *skb,
Expand All @@ -68,6 +69,7 @@ static void nf_ip6_saveroute(const struct sk_buff *skb,

rt_info->daddr = iph->daddr;
rt_info->saddr = iph->saddr;
rt_info->mark = skb->mark;
}
}

Expand All @@ -79,7 +81,8 @@ static int nf_ip6_reroute(struct sk_buff *skb,
if (entry->hook == NF_INET_LOCAL_OUT) {
struct ipv6hdr *iph = ipv6_hdr(skb);
if (!ipv6_addr_equal(&iph->daddr, &rt_info->daddr) ||
!ipv6_addr_equal(&iph->saddr, &rt_info->saddr))
!ipv6_addr_equal(&iph->saddr, &rt_info->saddr) ||
skb->mark != rt_info->mark)
return ip6_route_me_harder(skb);
}
return 0;
Expand Down

0 comments on commit b664acf

Please sign in to comment.