Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214845
b: refs/heads/master
c: 55747a0
h: refs/heads/master
i:
  214843: 0798812
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Oct 4, 2010
1 parent 0ed1aab commit 68e979d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: ddcb4541e917780ef7ccc68dd8df18ca0bc055d0
refs/heads/master: 55747a0a73ea74a25fcebb0731e8d3f13fe8c09d
10 changes: 4 additions & 6 deletions trunk/net/ipv4/ipmr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1805,6 +1805,7 @@ int ip_mr_input(struct sk_buff *skb)
}

#ifdef CONFIG_IP_PIMSM
/* called with rcu_read_lock() */
static int __pim_rcv(struct mr_table *mrt, struct sk_buff *skb,
unsigned int pimlen)
{
Expand All @@ -1826,26 +1827,23 @@ static int __pim_rcv(struct mr_table *mrt, struct sk_buff *skb,
read_lock(&mrt_lock);
if (mrt->mroute_reg_vif_num >= 0)
reg_dev = mrt->vif_table[mrt->mroute_reg_vif_num].dev;
if (reg_dev)
dev_hold(reg_dev);
read_unlock(&mrt_lock);

if (reg_dev == NULL)
return 1;

skb->mac_header = skb->network_header;
skb_pull(skb, (u8*)encap - skb->data);
skb_pull(skb, (u8 *)encap - skb->data);
skb_reset_network_header(skb);
skb->protocol = htons(ETH_P_IP);
skb->ip_summed = 0;
skb->ip_summed = CHECKSUM_NONE;
skb->pkt_type = PACKET_HOST;

skb_tunnel_rx(skb, reg_dev);

netif_rx(skb);
dev_put(reg_dev);

return 0;
return NET_RX_SUCCESS;
}
#endif

Expand Down

0 comments on commit 68e979d

Please sign in to comment.