Patchwork [5/8] pptp: Use flowi4's daddr/saddr in pptp_xmit().

login
register
mail settings
Submitter David Miller
Date May 4, 2011, 5:14 p.m.
Message ID <20110504.101455.112591846.davem@davemloft.net>
Download mbox | patch
Permalink /patch/94099/
State Accepted
Delegated to: David Miller
Headers show

Comments

David Miller - May 4, 2011, 5:14 p.m.
Instead of rt->rt_{src,dst}

Signed-off-by: David S. Miller <davem@davemloft.net>
---
 drivers/net/pptp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/net/pptp.c b/drivers/net/pptp.c
index e771e8d..1286fe2 100644
--- a/drivers/net/pptp.c
+++ b/drivers/net/pptp.c
@@ -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);