Skip to content

Commit

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

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 4, 2011
1 parent 31e4543 commit 28c90da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/pptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ static int pptp_xmit(struct ppp_channel *chan, struct sk_buff *skb)
iph->frag_off = 0;
iph->protocol = IPPROTO_GRE;
iph->tos = 0;
iph->daddr = rt->rt_dst;
iph->saddr = rt->rt_src;
iph->daddr = fl4.daddr;
iph->saddr = fl4.saddr;
iph->ttl = ip4_dst_hoplimit(&rt->dst);
iph->tot_len = htons(skb->len);

Expand Down

0 comments on commit 28c90da

Please sign in to comment.