Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Jan 1997 17:05:53 +0100
From:      Poul-Henning Kamp <phk@critter.dk.tfs.com>
To:        Peter Wemm <peter@spinner.DIALix.COM>
Cc:        grog@lemis.de (Greg Lehey), FreeBSD-current@freebsd.org (FreeBSD current users)
Subject:   Re: What's happened to nfsd and mountd? 
Message-ID:  <7655.852825953@critter.dk.tfs.com>
In-Reply-To: Your message of "Thu, 09 Jan 1997 23:02:49 %2B0800." <199701091502.XAA13553@spinner.DIALix.COM> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199701091502.XAA13553@spinner.DIALix.COM>, Peter Wemm writes:
>> 
>> A pointer to the problem, by the look of it:
>> 
>> === grog@freebie (/dev/ttypa) ~/src 3 -> gma
>> get_myaddress() returns 0
>> sin_family = 0 (AF_INET = 2)
>> sin_len = 3 (16)
>> sin_port = 0
>> sin_addr = 0.32.0.0
>> SIOCFIGCONF used 1008 bytes of a buffer 1024 long
>
>YIKES!  SIOCGIFCONF might be screwing up by the look of it.  Either that 
>or you
>have records being returned that are not sizeof(ifreq) in length and the 
>code that is supposed to track these isn't working.  There's 16 spare 
>bytes coming from somewhere..

I belive SIOGIFCONF will only return an integral number of records,
and therefore will only seldom hit the buffer size exactly...

--
Poul-Henning Kamp           | phk@FreeBSD.ORG       FreeBSD Core-team.
http://www.freebsd.org/~phk | phk@login.dknet.dk    Private mailbox.
whois: [PHK]                | phk@tfs.com           TRW Financial Systems, Inc.
Power and ignorance is a disgusting cocktail.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7655.852825953>