* Subject: [PATCH] Advertise PPPoE MTU (resubmit).
@ 2006-09-26 11:31 mostrows
2006-09-26 13:37 ` Paul Mackerras
0 siblings, 1 reply; 2+ messages in thread
From: mostrows @ 2006-09-26 11:31 UTC (permalink / raw)
To: linux-kernel, netdev, ppp-bugs; +Cc: Michal Ostrowski
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 <mostrows@earthlink.net>
---
drivers/net/pppoe.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index 475dc93..c89e9ee 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -600,6 +600,7 @@ static int pppoe_connect(struct socket *
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;
--
1.4.1.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: Subject: [PATCH] Advertise PPPoE MTU (resubmit).
2006-09-26 11:31 Subject: [PATCH] Advertise PPPoE MTU (resubmit) mostrows
@ 2006-09-26 13:37 ` Paul Mackerras
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mackerras @ 2006-09-26 13:37 UTC (permalink / raw)
To: mostrows; +Cc: linux-kernel, netdev, ppp-bugs
mostrows@earthlink.net writes:
> 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 <mostrows@earthlink.net>
Acked-by: Paul Mackerras <paulus@samba.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-26 13:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 11:31 Subject: [PATCH] Advertise PPPoE MTU (resubmit) mostrows
2006-09-26 13:37 ` Paul Mackerras
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).