* [PATCH 5/8] pptp: Use flowi4's daddr/saddr in pptp_xmit().
@ 2011-05-04 17:14 David Miller
0 siblings, 0 replies; only message in thread
From: David Miller @ 2011-05-04 17:14 UTC (permalink / raw)
To: netdev
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(-)
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);
--
1.7.4.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-04 17:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-04 17:14 [PATCH 5/8] pptp: Use flowi4's daddr/saddr in pptp_xmit() David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).