Date: Tue, 17 Sep 2002 14:53:02 +1000 (EST) From: Ian Lister <freebsd-lists@lister.dnsalias.net> To: Bruce M Simpson <bms@spc.org> Cc: freebsd-net@FreeBSD.ORG Subject: Re: Proposal: adopt SIOCGLIFNUM interface for enumerating iflist. Message-ID: <Pine.BSF.4.44.0209171446420.67125-100000@sapporo.home> In-Reply-To: <20020916164206.GN28076@spc.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 Sep 2002, Bruce M Simpson wrote: >At this time these applications have to play 'elastic buffer' games with the >SIOCGIFCONF ioctl in order to get all of the relevant information. By allowing >userland applications to determine the size of this buffer at runtime, we >eliminate the need for repeated calls to ifioctl(). NetBSD returns the required buffer size in ifc.ifc_len so you only need to call ioctl at most twice (once to determine the buffer size and once with a buffer large enough). Just another option (with precedent)... Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.44.0209171446420.67125-100000>