From owner-freebsd-net Wed Aug 14 10:40:18 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B06E437B406 for ; Wed, 14 Aug 2002 10:40:12 -0700 (PDT) Received: from sccrmhc02.attbi.com (sccrmhc02.attbi.com [204.127.202.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09C8B43E65 for ; Wed, 14 Aug 2002 10:40:12 -0700 (PDT) (envelope-from julian@elischer.org) Received: from InterJet.elischer.org ([12.232.206.8]) by sccrmhc02.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020814174011.EOSW13899.sccrmhc02.attbi.com@InterJet.elischer.org>; Wed, 14 Aug 2002 17:40:11 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA22381; Wed, 14 Aug 2002 10:25:25 -0700 (PDT) Date: Wed, 14 Aug 2002 10:25:23 -0700 (PDT) From: Julian Elischer To: Brooks Davis Cc: Bruce Evans , "M. Warner Losh" , net@FreeBSD.ORG Subject: Re: switching to if_xname from if_name and if_unit In-Reply-To: <20020814095606.A32608@Odin.AC.HMC.Edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 14 Aug 2002, Brooks Davis wrote: > > I'm trying to figure out what the best idiom would be. While a >15 > character name seems unlikely, we probably shouldn't trust > device_get_nameunit(). In that case, I'm not sure what the best thing > to use. The obvious thing is strlcpy, but I don't think we have that in > the kernel. We could use strncpy with the usual tricks or snprintf. > Another option would be something like in if.[ch]: > [...] I'd like to start using symbolic names such as "Chicago_sprint-12" and "New_York_uunet-2" and "San_Francisco_virtella-3" to describe my p2p interfaces.. note that the last one is 24 characters long To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message