Skip to content

Commit

Permalink
ipv4: Use flowi4->{daddr,saddr} in ipip_tunnel_xmit().
Browse files Browse the repository at this point in the history
Instead of rt->rt_{dst,src}

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 4, 2011
1 parent 9cddf15 commit 69458cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/ipip.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,8 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
iph->frag_off = df;
iph->protocol = IPPROTO_IPIP;
iph->tos = INET_ECN_encapsulate(tos, old_iph->tos);
iph->daddr = rt->rt_dst;
iph->saddr = rt->rt_src;
iph->daddr = fl4.daddr;
iph->saddr = fl4.saddr;

if ((iph->ttl = tiph->ttl) == 0)
iph->ttl = old_iph->ttl;
Expand Down

0 comments on commit 69458cb

Please sign in to comment.