Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2002 11:35:09 -0700
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        brooks@one-eyed-alien.net, julian@elischer.org, bde@zeta.org.au, net@FreeBSD.ORG
Subject:   Re: switching to if_xname from if_name and if_unit
Message-ID:  <20020814113509.A15848@Odin.AC.HMC.Edu>
In-Reply-To: <20020814.122515.26283996.imp@bsdimp.com>; from imp@bsdimp.com on Wed, Aug 14, 2002 at 12:25:15PM -0600
References:  <20020814095606.A32608@Odin.AC.HMC.Edu> <Pine.BSF.4.21.0208141020200.22277-100000@InterJet.elischer.org> <20020814105903.A8808@Odin.AC.HMC.Edu> <20020814.122515.26283996.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Aug 14, 2002 at 12:25:15PM -0600, M. Warner Losh wrote:
> In message: <20020814105903.A8808@Odin.AC.HMC.Edu>
>             Brooks Davis <brooks@one-eyed-alien.net> writes:
> : > > to use.  The obvious thing is strlcpy, but I don't think we have th=
at in
> : > > the kernel.  We could use strncpy with the usual tricks or snprintf.
>=20
> strlcpy is in the kernel now.

OK, I think I'll use:

strlcpy(ifp->if_xname, device_get_nameunit(dev), IFNAMSIZ);

> As for long device names, that's orthogonal to what we're talking
> about.  I'd just go ahead and do this.

Yah, it's pretty much unrelated.  If anything this should make that
change easier.

-- Brooks

PS.  Does anyone have a Perforce for Dummies document handy?  I was
thinking this might be a good project to give it a try with.

--=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

--PNTmBPCT7hxwcZjr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9WqLcXY6L6fI4GtQRAgy8AKCcoCYFerFWhJicQiCzAqdTXny59QCffkr3
ZFspL8pV6sOFj/T3jjEka0A=
=sPp3
-----END PGP SIGNATURE-----

--PNTmBPCT7hxwcZjr--

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?20020814113509.A15848>