summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_gre.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2013-05-27 23:48:15 +0000
committerDavid S. Miller <davem@davemloft.net>2013-05-31 17:19:05 -0700
commitbf3d6a8f791b2a81279b9ce3201b4970f6fbe51a (patch)
tree72093c081b2de664ca77da0bc56fcaebf19eb195 /net/ipv4/ip_gre.c
parent35d0461061f27eeb62de63174959edbbb9e434de (diff)
downloadop-kernel-dev-bf3d6a8f791b2a81279b9ce3201b4970f6fbe51a.zip
op-kernel-dev-bf3d6a8f791b2a81279b9ce3201b4970f6fbe51a.tar.gz
iptunnel: specify protocol outside IP header
Before this patch, ip_tunnel_xmit() was using the field protocol from the IP header passed into argument. There is no functional change, this patch prepares the support of IPv4 over IPv4 for module sit. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_gre.c')
-rw-r--r--net/ipv4/ip_gre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
index 2a83591..a982657 100644
--- a/net/ipv4/ip_gre.c
+++ b/net/ipv4/ip_gre.c
@@ -429,7 +429,7 @@ static void __gre_xmit(struct sk_buff *skb, struct net_device *dev,
return;
}
- ip_tunnel_xmit(skb, dev, tnl_params);
+ ip_tunnel_xmit(skb, dev, tnl_params, tnl_params->protocol);
}
static netdev_tx_t ipgre_xmit(struct sk_buff *skb,
OpenPOWER on IntegriCloud