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>
This commit is contained in:

committed by
David S. Miller

parent
35d0461061
commit
bf3d6a8f79
@@ -222,7 +222,7 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
|
||||
skb->encapsulation = 1;
|
||||
}
|
||||
|
||||
ip_tunnel_xmit(skb, dev, tiph);
|
||||
ip_tunnel_xmit(skb, dev, tiph, tiph->protocol);
|
||||
return NETDEV_TX_OK;
|
||||
|
||||
tx_error:
|
||||
|
Reference in New Issue
Block a user