Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115017
b: refs/heads/master
c: eef9d90
h: refs/heads/master
i:
  115015: 77dc53f
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Oct 15, 2008
1 parent 7065ca1 commit a5b3b13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 4ef079ccc1d934c5f9966f2bfcd5dbbef8f7a0a7
refs/heads/master: eef9d90dcde7bb4d029b67ed36457efc4970d5a2
6 changes: 3 additions & 3 deletions trunk/net/ipv6/netfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

int ip6_route_me_harder(struct sk_buff *skb)
{
struct net *net = dev_net(skb->dst->dev);
struct ipv6hdr *iph = ipv6_hdr(skb);
struct dst_entry *dst;
struct flowi fl = {
Expand All @@ -23,7 +24,7 @@ int ip6_route_me_harder(struct sk_buff *skb)
.saddr = iph->saddr, } },
};

dst = ip6_route_output(dev_net(skb->dst->dev), skb->sk, &fl);
dst = ip6_route_output(net, skb->sk, &fl);

#ifdef CONFIG_XFRM
if (!(IP6CB(skb)->flags & IP6SKB_XFRM_TRANSFORMED) &&
Expand All @@ -33,8 +34,7 @@ int ip6_route_me_harder(struct sk_buff *skb)
#endif

if (dst->error) {
IP6_INC_STATS(&init_net, ip6_dst_idev(dst),
IPSTATS_MIB_OUTNOROUTES);
IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES);
LIMIT_NETDEBUG(KERN_DEBUG "ip6_route_me_harder: No more route.\n");
dst_release(dst);
return -EINVAL;
Expand Down

0 comments on commit a5b3b13

Please sign in to comment.