• R/O
  • HTTP
  • SSH
  • HTTPS

linux-2.4.36: Commit

2.4.36-stable kernel tree


Commit MetaInfo

Revisiond996a37b730f143d65a5b3028be3c9759f6c484b (tree)
Zeit2006-09-29 06:25:32
Autormostrows@earthlink.net <mostrows@eart...>
CommiterWilly Tarreau

Log Message

[PATCH] Advertise PPPoE MTU

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>

Ändern Zusammenfassung

Diff

--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -639,6 +639,7 @@ int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr,
639639 po->chan.hdrlen = (sizeof(struct pppoe_hdr) +
640640 dev->hard_header_len);
641641
642+ po->chan.mtu = dev->mtu - sizeof(struct pppoe_hdr);
642643 po->chan.private = sk;
643644 po->chan.ops = &pppoe_chan_ops;
644645
Show on old repository browser