From owner-freebsd-bugs Thu Jul 9 16:57:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA18584 for freebsd-bugs-outgoing; Thu, 9 Jul 1998 16:57:08 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA18579; Thu, 9 Jul 1998 16:57:05 -0700 (PDT) (envelope-from fenner@FreeBSD.org) From: Bill Fenner Received: (from fenner@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id QAA10870; Thu, 9 Jul 1998 16:56:53 -0700 (PDT) Date: Thu, 9 Jul 1998 16:56:53 -0700 (PDT) Message-Id: <199807092356.QAA10870@freefall.freebsd.org> To: rec@rcousins.com, fenner@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/7230 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: problem with SIOCGIFCONF State-Changed-From-To: open-closed State-Changed-By: fenner State-Changed-When: Thu Jul 9 16:55:04 PDT 1998 State-Changed-Why: The SIOCGIFCONF interface changed in 4.3-Reno (when sa_len was introduced). The return value includes a list of struct ifreqs, but you have to check the size of the struct sockaddr inside the struct ifreq to see where the next ifreq starts. See, for example, the code on page 436 of _UNIX Network Programming, Volume 1_, second edition. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message