Date: Wed, 22 Nov 2023 01:44:43 +0000 From: Jamie Landeg-Jones <jamie@catflap.org> To: mike@karels.net, kp@FreeBSD.org Cc: zlei@FreeBSD.org, kevans@FreeBSD.org, freebsd@igalic.co, freebsd-net@FreeBSD.org Subject: Re: How to tell if a network interface was renamed (and from what) Message-ID: <202311220144.3AM1ihPe054724@donotpassgo.dyslexicfish.net> In-Reply-To: <F2536F44-5C61-4AE3-BEDA-705DD660A8F7@FreeBSD.org> 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> <F2536F44-5C61-4AE3-BEDA-705DD660A8F7@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Kristof Provost <kp@FreeBSD.org> wrote: > > I believe a similar solution has been proposed before, and it failed to cope with things like epair interfaces. > > I’d look in the direction of just adding a field to struct ifnet with the original interface name (likely easily done in if_attach()), along with a new ioctl to retrieve that field. Not knowing the intricacies of coding that, from an end user point of view, that method would be perfectly fine too (and does seem a little cleaner, even if a bit more disruptive codewise) In other words, I'd be grateful for this functionality - As an end-user, whilst my individual opinion doesn't really matter, I have no negative opinion on the various ways of achieving it - whatever works out best for you guys, and I'll be happy! Cheers!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202311220144.3AM1ihPe054724>