original interface name? (5.*)
Max Laier
max at love2party.net
Fri Sep 10 12:31:47 PDT 2004
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?
From inside the kernel you can use ifnet.if_dname + ifnet.if_dunit, from the
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*
name of the interface. There is no such thing as "original name".
--
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20040910/98149c1b/attachment.bin
More information about the freebsd-net
mailing list