Date: Fri, 10 Sep 2004 21:30:11 +0200 From: Max Laier <max@love2party.net> To: netch@lucky.net Cc: freebsd-net@freebsd.org Subject: Re: original interface name? (5.*) Message-ID: <200409102130.20287.max@love2party.net> In-Reply-To: <20040910191831.GP89036@lucky.net> References: <20040910191831.GP89036@lucky.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-02=_MDgQBKN0Xcm6tOy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 10 September 2004 21:18, Valentin Nechayev wrote: > Hi, > is there a stable way to determine original interface name (before > any renaming) in 5.3? I.e. as driver + sequence number? =46rom inside the kernel you can use ifnet.if_dname + ifnet.if_dunit, from = the=20 userland I don't know if it's possible to get a look at those fields. In any way, I suggest not to do that. ifnet.if_xname is supposed to be *the= *=20 name of the interface. There is no such thing as "original name". =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --Boundary-02=_MDgQBKN0Xcm6tOy Content-Type: application/pgp-signature Content-Description: signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQBBQgDMXyyEoT62BG0RAoDgAJ45SYqFkDakQZgvpwT9cimFMzoWrwCfXosL NdvRlnDr1rHKwEau8KeMW6o= =UOD1 -----END PGP SIGNATURE----- --Boundary-02=_MDgQBKN0Xcm6tOy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409102130.20287.max>