Subject: [PATCH] Advertise PPPoE MTU (resubmit).



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@xxxxxxxxxxxxx>
---
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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: ath using hostap sets MTU to 2290 / channel 0 no longer works
    ... I have a system running pfSense, which is built on top of FreeBSD ... as it appears their code actually tries to set the MTU to 1500. ... I have an ath card I'm working with that sets its MTU to 1500 in hostap, ... show up unless they manually specify a channel. ...
    (freebsd-net)
  • Re: Subject: [PATCH] Advertise PPPoE MTU (resubmit).
    ... descriptor structure, as multilink functionality depends on it. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: Problem with scp
    ... Especially if there is ADSL involved, you often have to change your MTU ... > It looks to me like host and user authentications are both working fine, ... > then a channel for the transfer is opened - and then something goes wrong. ...
    (SSH)