Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289728
b: refs/heads/master
c: 61d57f8
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jan 24, 2012
1 parent 4290d70 commit 0a54e5d
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 658c8d964eb3cdb7e4230a59ba09c75a3359ee4a
refs/heads/master: 61d57f87f3fb04a305f22befabd042ffbec8b852
4 changes: 3 additions & 1 deletion trunk/net/ipv4/ip_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,10 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev
goto tx_error;
}

if (skb->protocol == htons(ETH_P_IP))
if (skb->protocol == htons(ETH_P_IP)) {
rt = skb_rtable(skb);
dst = rt->rt_gateway;
}
#if IS_ENABLED(CONFIG_IPV6)
else if (skb->protocol == htons(ETH_P_IPV6)) {
struct neighbour *neigh = dst_get_neighbour_noref(skb_dst(skb));
Expand Down

0 comments on commit 0a54e5d

Please sign in to comment.