Skip to contentSkip to conversation

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

PATCH [email protected] 2 participants 2 messages Sep 26, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PPPoE must advertise the underlying device's MTU via the ppp channel descriptor structure, as multilink functionality depends on it.

---
 drivers/net/pppoe.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/pppoe.c +1 -0
index 475dc93..c89e9ee 100644
@@ -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;
 
Signature · 1 line
1.4.1.1