tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: netbsd-5: another problem, news/leafnode + ioctl(SIOCGIFCONF)



On Sat, Mar 21, 2009 at 03:58:51PM +0200, Aleksey Cheusov wrote:
> 
>  >>leafnode-1.11.3nb1
> 
> > change it to use getifaddrs().
> 
> That is SIOCGIFCONF ioctl (or something else) is broken in netbsd-5
> and leafnode needs to be patched. Right?

Wrong.  The calling program (leafnode) is broken -- it uses the ioctl
wrong -- but the easiest way to fix it is to make it use getifaddrs
instead of the ioctl.

Generally speaking netbsd-5 is much less tolerant of wrong application
behavior than earlier releases of netbsd, usually because actually ensuring
correct behavior in all cases for correct applications required this.

-- 
Thor Lancelot Simon                                        
tls%rek.tjls.com@localhost
    "Even experienced UNIX users occasionally enter rm *.* at the UNIX
     prompt only to realize too late that they have removed the wrong
     segment of the directory structure." - Microsoft WSS whitepaper


Home | Main Index | Thread Index | Old Index