Re: How to tell if a network interface was renamed (and from what)
- Reply: Franco Fichtner : "Re: How to tell if a network interface was renamed (and from what)"
- Reply: Mike Karels : "Re: How to tell if a network interface was renamed (and from what)"
- In reply to: Kristof Provost : "Re: How to tell if a network interface was renamed (and from what)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 Nov 2023 21:16:28 UTC
> On 20. Nov 2023, at 21:56, Kristof Provost <kp@FreeBSD.org> wrote: > > 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. ifconfig_get_orig_name() already exists, but apart from wlandebug nothing is using it. The internally used IFDATA_DRIVERNAME also appears in ifinfo (not installed in base) and bsnmpd but that's it. if_dname is the target and it exists in ifnet struct along with a man page entry in inet(9). All that is really missing is a way to print it via ifconfig command. Cheers, Franco