pppoe: use the interface mtu as upper limit for ppp packet size + header (based on...
[openwrt.git] / target / linux / generic-2.4 / patches / 229-pppoe_mtu_fix.patch
1 --- linux-2.4.30/drivers/net/pppoe.c.old 2006-10-10 13:49:12.000000000 +0200
2 +++ linux-2.4.30/drivers/net/pppoe.c 2006-10-10 13:50:02.000000000 +0200
3 @@ -639,6 +639,9 @@
4 po->chan.hdrlen = (sizeof(struct pppoe_hdr) +
5 dev->hard_header_len);
6
7 + if (po->chan.mtu > dev->mtu - sizeof(struct pppoe_hdr))
8 + po->chan.mtu = dev->mtu - sizeof(struct pppoe_hdr);
9 +
10 po->chan.private = sk;
11 po->chan.ops = &pppoe_chan_ops;
12
This page took 0.037757 seconds and 5 git commands to generate.