Date: Mon, 20 Nov 2023 20:32:35 +0000 From: =?utf-8?Q?Mina_Gali=C4=87?= <freebsd@igalic.co> To: Mike Karels <mike@karels.net> Cc: Zhenlei Huang <zlei@FreeBSD.org>, Kyle Evans <kevans@FreeBSD.org>, freebsd-net@freebsd.org Subject: Re: How to tell if a network interface was renamed (and from what) Message-ID: <nX4VHB7GAiaHrkPveGM-Cbdus-EUddKzAlGC48PXMTmO2bbgKkcsdeBqqBFS9gYlAAo7_ty-lt4tQ4Bcvv4iQW7uw90O5CR8M2PHfzR3FTc=@igalic.co> In-Reply-To: <31B38FCE-0B67-4122-A202-568150E971E1@karels.net> References: <pdHC0ObBkAbx2HfFIhWYaB5-dmQDEUzNTWvVVJAuJV7FWdWWeSwybVFD-uyBUxPlqDRpAW7D1aAZsbrTxEj9kqsq7ESgO41srPmS-PcXGqw=@igalic.co> <E5F5F61E-3827-404A-A46F-BBCF45A29A82@FreeBSD.org> <9eef5488-e8da-4edd-bc00-baeb5aaf4a23@FreeBSD.org> <ptnVEMJ_x48tdYePN4iYRiEW2vWqwulbEOUJ4dQ1cKGkxNXZPPfdEVHdJKNHFfs2onxNipVZKPwDZZKlDv1peS1Xttim1VitMFsdUiTkAKE=@igalic.co> <032BADD4-0A49-42E2-BAAB-40D2F76C64B9@FreeBSD.org> <rvRLOlpJc9xIf67ZwmZ4Si6TN2VtmIuyuguoQgEk5NTOeqsqkAwB_9KvlMbW6y-npSjCC2lmLVXbD4oIqyKJdDboThcWiehF_hU0L9D6GZc=@igalic.co> <31B38FCE-0B67-4122-A202-568150E971E1@karels.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> I have a proof of concept that makes the presumed original name > (driver name + unit number) available to ifconfig, which prints > the string with everything else in the standard output format. > I don't think that is the right solution, but the other details > should be easy. I'm tempted to print the driver name and unit > number separately, although possibly as two words using the same > option. It should probably be an option rather than a keyword, > so something like this: >=20 > # ifconfig -N interface-name > igb 1 > # >=20 > Or the unit number could be on a separate option. >=20 > Comments? I like it! > Mike Mina
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?nX4VHB7GAiaHrkPveGM-Cbdus-EUddKzAlGC48PXMTmO2bbgKkcsdeBqqBFS9gYlAAo7_ty-lt4tQ4Bcvv4iQW7uw90O5CR8M2PHfzR3FTc=>