projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1533d38
)
[PPPOE]: Advertise PPPoE MTU
author
Michal Ostrowski
<
[email protected]
>
Wed, 27 Sep 2006 23:11:25 +0000
(16:11 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 29 Sep 2006 01:01:44 +0000
(18:01 -0700)
PPPoE must advertise the underlying device's MTU via the ppp channel
descriptor structure, as multilink functionality depends on it.
Signed-off-by: Michal Ostrowski <
[email protected]
>
Acked-by: Paul Mackerras <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/pppoe.c
patch
|
blob
|
history
diff --git
a/drivers/net/pppoe.c
b/drivers/net/pppoe.c
index 5666ed998142475420fbd3f0a5e220a98f1afb6e..0adee733b76121126c4cbfcf0cbed8f9aadbc087 100644
(file)
--- a/
drivers/net/pppoe.c
+++ b/
drivers/net/pppoe.c
@@
-600,6
+600,7
@@
static int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr,
po->chan.hdrlen = (sizeof(struct pppoe_hdr) +
dev->hard_header_len);
+ po->chan.mtu = dev->mtu - sizeof(struct pppoe_hdr);
po->chan.private = sk;
po->chan.ops = &pppoe_chan_ops;