Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90758
b: refs/heads/master
c: cec3ffa
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Apr 16, 2008
1 parent 9e5ad39 commit d93cb80
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: b9fae5c9138086d27715a8a0f29d5b55239db35c
refs/heads/master: cec3ffae1a019f02cd6b5fa291f279c8e9f86157
4 changes: 2 additions & 2 deletions trunk/net/ipv4/ipip.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ static int ipip_err(struct sk_buff *skb, u32 info)
err = -ENOENT;

read_lock(&ipip_lock);
t = ipip_tunnel_lookup(&init_net, iph->daddr, iph->saddr);
t = ipip_tunnel_lookup(dev_net(skb->dev), iph->daddr, iph->saddr);
if (t == NULL || t->parms.iph.daddr == 0)
goto out;

Expand Down Expand Up @@ -478,7 +478,7 @@ static int ipip_rcv(struct sk_buff *skb)
const struct iphdr *iph = ip_hdr(skb);

read_lock(&ipip_lock);
if ((tunnel = ipip_tunnel_lookup(&init_net,
if ((tunnel = ipip_tunnel_lookup(dev_net(skb->dev),
iph->saddr, iph->daddr)) != NULL) {
if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) {
read_unlock(&ipip_lock);
Expand Down

0 comments on commit d93cb80

Please sign in to comment.