From owner-freebsd-current@FreeBSD.ORG Wed Jan 25 16:23:04 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2F8C16A41F; Wed, 25 Jan 2006 16:23:04 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73CFA43D60; Wed, 25 Jan 2006 16:23:03 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k0PGMjsn003841; Wed, 25 Jan 2006 08:22:45 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k0PGMiQP003834; Wed, 25 Jan 2006 08:22:44 -0800 Date: Wed, 25 Jan 2006 08:22:44 -0800 From: Brooks Davis To: Andre Oppermann Message-ID: <20060125162244.GA2848@odin.ac.hmc.edu> References: <20060124075437.B67285@xorpc.icir.org> <20060124.231504.74682748.sthaug@nethelp.no> <43D72F49.8080304@freebsd.org> <200601250903.01941.current@dino.sk> <43D73395.1020003@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G" Content-Disposition: inline In-Reply-To: <43D73395.1020003@freebsd.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-current@freebsd.org, Milan Obuch Subject: Re: if_flags usage etc. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jan 2006 16:23:05 -0000 --k1lZvvs/B4yU6o8G Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 25, 2006 at 09:15:17AM +0100, Andre Oppermann wrote: > Milan Obuch wrote: > >On Wednesday 25 January 2006 08:56, Andre Oppermann wrote: > > > >>sthaug@nethelp.no wrote: > >> > >>>>We should probably better document the interface "interface". if we a= re > >>>>going to (as Sam suggests) > >>>>do some cleanups we might as well consider what other changes should = be > >>>>put in at the same time. > >>> > >... > > > >>>- One feature sorely missed (which I use a lot in my daily work with > >>>hardware based routers) is the ability to associate a "description" > >>>field with each interface. Note that this should be available both > >>>for physical interfaces (Ethernet etc.) and for logical interfaces > >>>(e.g. vlan). > >> > >>Struct ifnet is the same for all kinds of interfaces, so any change > >>would make it available for everyone. And yes, this looks like a useful > >>addition. > > > >See archives - mailing list freebsd-net, Nov 25. 2005, subject ifconfig= =20 > >description. >=20 > Interesting. Ideally it would not use a static sized buffer for the=20 > description > but a pointer in struct ifnet to a malloc()ed block of memory. This woul= d=20 > allow > for arbitrary sized descriptions. Haven't looked at the difficulties=20 > implementing > the this for the userland/kernel crossing though. See my post to -net a week or two ago suggesting deprecating the ifr_data member in favor of a pointer and a length. I proposed it specificaly to support this feature in a non-broken way. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --k1lZvvs/B4yU6o8G Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFD16XUXY6L6fI4GtQRAi/bAJ9PnOH5CSYK3MzkLz6YzMeMpV6HzQCfVdAu 4MwvcDsgfVPDoGslSGC2gBg= =V8aN -----END PGP SIGNATURE----- --k1lZvvs/B4yU6o8G--