Subject: Re: max_linkhdr
To: Jun-ichiro itojun Hagino <itojun@iijlab.net>
From: Matt Thomas <matt@3am-software.com>
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: matt@3am-software.com
3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt/
Cupertino, CA Disclaimer: I avow all knowledge of this message