From owner-freebsd-current@FreeBSD.ORG Wed Jan 25 08:15:20 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 3740016A41F for ; Wed, 25 Jan 2006 08:15:20 +0000 (GMT) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53D7A43D45 for ; Wed, 25 Jan 2006 08:15:19 +0000 (GMT) (envelope-from andre@freebsd.org) Received: (qmail 99829 invoked from network); 25 Jan 2006 08:15:28 -0000 Received: from dotat.atdotat.at (HELO [62.48.0.47]) ([62.48.0.47]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 25 Jan 2006 08:15:28 -0000 Message-ID: <43D73395.1020003@freebsd.org> Date: Wed, 25 Jan 2006 09:15:17 +0100 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050217 MIME-Version: 1.0 To: Milan Obuch References: <20060124075437.B67285@xorpc.icir.org> <20060124.231504.74682748.sthaug@nethelp.no> <43D72F49.8080304@freebsd.org> <200601250903.01941.current@dino.sk> In-Reply-To: <200601250903.01941.current@dino.sk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org 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 08:15:20 -0000 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 are >>>>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 > description. Interesting. Ideally it would not use a static sized buffer for the description but a pointer in struct ifnet to a malloc()ed block of memory. This would allow for arbitrary sized descriptions. Haven't looked at the difficulties implementing the this for the userland/kernel crossing though. -- Andre