Date: Mon, 4 Nov 2002 22:19:54 +0100 From: Vincent Jardin <vjardin@wanadoo.fr> To: net@freebsd.org Subject: MPD and MRU Message-ID: <3DA24BE600FF3EA2@mel-rta7.wanadoo.fr> (added by postmaster@wanadoo.fr)
next in thread | raw e-mail | index | archive | help
Hi, It looks like it is not possible to configure any MRU values with MPD, due to LCP_MRU_MARGIN (=20). For example, on the PPPoE links, the values between 1473 to 1491 are not possible. ... link.c: case SET_MRU: case SET_MTU: val = atoi(*av); name = ((intptr_t)arg == SET_MTU) ? "MTU" : "MRU"; if (!lnk->phys->type) Log(LG_ERR, ("[%s] this link has no type set", lnk->name)); else if (val < LCP_MIN_MRU) Log(LG_ERR, ("[%s] the min %s is %d", lnk->name, name, LCP_MIN_MRU)); else if (val + LCP_MRU_MARGIN > lnk->phys->type->mru) Log(LG_ERR, ("[%s] the max %s on type \"%s\" links is %d", lnk->name, name, lnk->phys->type->name, lnk->phys->type->mru - LCP_MRU_MARGIN)); /* XXXXXXXXXX */ else if ((intptr_t)arg == SET_MTU) lnk->conf.mtu = val; else lnk->conf.mru = val; break; ... I think that the LCP_MRU_MARGIN tests could be removed or LCP_MRU_MARGIN could be set to 0. Regards, Vincent To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DA24BE600FF3EA2>