Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28c90da0 authored by David S. Miller's avatar David S. Miller
Browse files

pptp: Use flowi4's daddr/saddr in pptp_xmit().



Instead of rt->rt_{src,dst}

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 31e4543d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);