Subject: Re: max_linkhdr
To: Jun-ichiro itojun Hagino <>
From: Matt Thomas <>
List: tech-net
Date: 07/23/2001 23:27:27
At 03:10 PM 7/24/2001 +0900, Jun-ichiro itojun Hagino wrote:
>         at this moment noone updates max_linkhdr.  i guess it has to be
>         updated on interface attachments.
>         but i'm reluctant to making the change since by doing so we can
>         overflow some assumptions on MHLEN.  any comments?
>         (things like MHLEN > max_linkhdr + sizeof(ip) + sizeof(tcp))

It's updated in uipc_domain.c:

         if (max_linkhdr < 16)           /* XXX */
                 max_linkhdr = 16;

It should be also be updated when doing if_attach but
currently isn't.
Matt Thomas               Internet:
3am Software Foundry      WWW URL:
Cupertino, CA             Disclaimer: I avow all knowledge of this message