From owner-freebsd-stable Thu Oct 21 10:50:34 1999 Delivered-To: freebsd-stable@freebsd.org Received: from over.ru (over.rinet.ru [195.54.192.99]) by hub.freebsd.org (Postfix) with SMTP id D77BA14F6F for ; Thu, 21 Oct 1999 10:49:30 -0700 (PDT) (envelope-from tarkhil@over.ru) Received: (qmail 90367 invoked by uid 1000); 21 Oct 1999 17:49:13 -0000 Date: Thu, 21 Oct 1999 21:49:13 +0400 From: Alex Povolotsky To: freebsd-stable@freebsd.org Cc: freebsd-net@freebsd.org Subject: Re: SIOCGIFCONF (or qmail?) problem? Message-ID: <19991021214913.A90292@over.ru> References: <19991021193216.D86089@over.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <19991021193216.D86089@over.ru> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Oct 21, 1999 at 07:32:16PM +0400, Alex Povolotsky wrote: > Investigating further, I've found that one of qmail's internal variables > gets overwriten when calling ioctl SIOCGIFCONF with pointer to ifconf > structure as argument (ipme.c, line 57 in qmail). > > I still have not found if qmail gives wrong address to ioctl or if ioctl use > more memory than requested. The fail seems to occur after iterating through Well, one step forth, if anyone is interested. given 420 bytes of buffer before ioctl(s,SIOCGIFCONF,&ifc), ioctl uses 1024 and sets ifc.ifc_len to 1024. I am not kernel-hacker enough to understand what's happening in /sys/net/if.c between lines 820 and 877, and, people, it's 9:50 PM here in Moscow! Can someone help? Alex. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message