summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMichal Ostrowski <mostrows@earthlink.net>2006-10-14 19:20:16 +0200
committerAdrian Bunk <bunk@stusta.de>2006-10-14 19:20:16 +0200
commit08f8337b2930f9b0924e6c0e362b11f7216766c0 (patch)
treeb4cd1c748dba77065be395615ec2a6a78584523b /drivers
parent1ecb731506c27cb63f54979fac57895b12164615 (diff)
[PPPOE]: 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> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/pppoe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c
index 9369f811075d..e023b38e3f75 100644
--- a/drivers/net/pppoe.c
+++ b/drivers/net/pppoe.c
@@ -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;