projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31e4543
)
pptp: Use flowi4's daddr/saddr in pptp_xmit().
author
David S. Miller
<davem@davemloft.net>
Wed, 4 May 2011 03:41:42 +0000
(20:41 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 4 May 2011 03:41:42 +0000
(20:41 -0700)
Instead of rt->rt_{src,dst}
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pptp.c
patch
|
blob
|
history
diff --git
a/drivers/net/pptp.c
b/drivers/net/pptp.c
index e771e8d27eb72c8a21a3d0884aa6eec06530b34a..1286fe212dc4585af3659ddb066d00e9283f2ce2 100644
(file)
--- 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);