From owner-freebsd-current Thu Jan 9 08:06:25 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA06869 for current-outgoing; Thu, 9 Jan 1997 08:06:25 -0800 (PST) Received: from tfs.com (tfs.com [140.145.250.1]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id IAA06863 for ; Thu, 9 Jan 1997 08:06:23 -0800 (PST) Received: from schizo.dk.tfs.com by tfs.com (smail3.1.28.1) with SMTP id m0viMzG-0003wXC; Thu, 9 Jan 97 08:05 PST Received: from critter.dk.tfs.com (critter.dk.tfs.com [140.145.230.252]) by schizo.dk.tfs.com (8.8.2/8.7.3) with ESMTP id RAA09977; Thu, 9 Jan 1997 17:05:48 +0100 (MET) Received: from critter.dk.tfs.com (localhost [127.0.0.1]) by critter.dk.tfs.com (8.8.2/8.8.2) with ESMTP id RAA07657; Thu, 9 Jan 1997 17:05:53 +0100 (MET) To: Peter Wemm cc: grog@lemis.de (Greg Lehey), FreeBSD-current@freebsd.org (FreeBSD current users) Subject: Re: What's happened to nfsd and mountd? In-reply-to: Your message of "Thu, 09 Jan 1997 23:02:49 +0800." <199701091502.XAA13553@spinner.DIALix.COM> Date: Thu, 09 Jan 1997 17:05:53 +0100 Message-ID: <7655.852825953@critter.dk.tfs.com> From: Poul-Henning Kamp Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.