Date: Wed, 14 Aug 2002 10:25:23 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: Bruce Evans <bde@zeta.org.au>, "M. Warner Losh" <imp@bsdimp.com>, net@FreeBSD.ORG Subject: Re: switching to if_xname from if_name and if_unit Message-ID: <Pine.BSF.4.21.0208141020200.22277-100000@InterJet.elischer.org> In-Reply-To: <20020814095606.A32608@Odin.AC.HMC.Edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0208141020200.22277-100000>