diff options
author | Michal Ostrowski <mostrows@earthlink.net> | 2006-10-14 19:20:16 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-10-14 19:20:16 +0200 |
commit | 08f8337b2930f9b0924e6c0e362b11f7216766c0 (patch) | |
tree | b4cd1c748dba77065be395615ec2a6a78584523b | |
parent | 1ecb731506c27cb63f54979fac57895b12164615 (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>
-rw-r--r-- | 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 9369f811075..e023b38e3f7 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; |