diff options
author | David S. Miller <davem@davemloft.net> | 2011-05-03 23:41:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-03 23:41:42 -0400 |
commit | 28c90da02ed7367fc5714adefce2a961e5bae306 (patch) | |
tree | 3ecc06a71f0d44034088d941925f15cb94bff009 /drivers/net/pptp.c | |
parent | 31e4543db29fb85496a122b965d6482c8d1a2bfe (diff) |
pptp: Use flowi4's daddr/saddr in pptp_xmit().
Instead of rt->rt_{src,dst}
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/pptp.c')
-rw-r--r-- | 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 e771e8d27eb7..1286fe212dc4 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) | |||
271 | iph->frag_off = 0; | 271 | iph->frag_off = 0; |
272 | iph->protocol = IPPROTO_GRE; | 272 | iph->protocol = IPPROTO_GRE; |
273 | iph->tos = 0; | 273 | iph->tos = 0; |
274 | iph->daddr = rt->rt_dst; | 274 | iph->daddr = fl4.daddr; |
275 | iph->saddr = rt->rt_src; | 275 | iph->saddr = fl4.saddr; |
276 | iph->ttl = ip4_dst_hoplimit(&rt->dst); | 276 | iph->ttl = ip4_dst_hoplimit(&rt->dst); |
277 | iph->tot_len = htons(skb->len); | 277 | iph->tot_len = htons(skb->len); |
278 | 278 | ||