Subject: Re: needs more sdl_data? (Re: rt_tables broken)
To: None <current-users@netbsd.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 08/05/2007 02:56:57
On Sun, Aug 05, 2007 at 02:49:04PM +0900, KIYOHARA Takashi wrote:
> Hi! all,
> 
> 
> I found sdl_data[12] of struct sockaddr_dl overflow.  I think that it is
> a cause that sdl_data is small this problem.  For instance, it overflows
> when it is a long if_xname like depca(4).
> 
>   strlen("depca0") + 1 ('\0') + if_addrlen (6byte?) => 13bytes

You have to make it longer.  Looks to me like a FireWire address is 16
bytes long.  I am looking at ieee1394_ifattach() where it sets if_addrlen.

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24