]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PPPOE]: Advertise PPPoE MTU
authorMichal Ostrowski <mostrows@earthlink.net>
Sat, 14 Oct 2006 17:20:16 +0000 (19:20 +0200)
committerAdrian Bunk <bunk@stusta.de>
Sat, 14 Oct 2006 17:20:16 +0000 (19:20 +0200)
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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/net/pppoe.c

index 9369f811075d123f245dc54bfac2a86f56607225..e023b38e3f75a38dede278814cc746b138df03ab 100644 (file)
@@ -601,6 +601,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;