Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2002 17:42:06 +0100
From:      Bruce M Simpson <bms@spc.org>
To:        freebsd-net@freebsd.org
Subject:   Proposal: adopt SIOCGLIFNUM interface for enumerating iflist.
Message-ID:  <20020916164206.GN28076@spc.org>

next in thread | raw e-mail | index | archive | help
All,

I propose we adopt the SIOCGLIFNUM interface from Solaris 8 for enumerating
the list of configured interfaces on a system.

Many userland applications now traverse the interface list to gather
interface information, in particular those which make use of multicast IP,
or for example, those which search for configured wireless interfaces on
a system.

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().

I'd like to know everyone's thoughts on the matter...

BMS

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?20020916164206.GN28076>