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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to