Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348011
b: refs/heads/master
c: 412ed94
h: refs/heads/master
i:
  348009: 849c0a1
  348007: 72f138d
v: v3
  • Loading branch information
Isaku Yamahata authored and David S. Miller committed Dec 21, 2012
1 parent dd6ed7c commit a6affa5
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: 29042073e7af55334ac3c4f2a8340263200c5749
refs/heads/master: 412ed94744d16806fbec3bd250fd94e71cde5a1f
5 changes: 4 additions & 1 deletion trunk/net/ipv4/ip_gre.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,10 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev

if (dev->header_ops && dev->type == ARPHRD_IPGRE) {
gre_hlen = 0;
tiph = (const struct iphdr *)skb->data;
if (skb->protocol == htons(ETH_P_IP))
tiph = (const struct iphdr *)skb->data;
else
tiph = &tunnel->parms.iph;
} else {
gre_hlen = tunnel->hlen;
tiph = &tunnel->parms.iph;
Expand Down

0 comments on commit a6affa5

Please sign in to comment.