From nobody Wed Nov 22 01:44:43 2023 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SZkZP4mD9z51Vfp for ; Wed, 22 Nov 2023 01:44:45 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:123::1]) by mx1.freebsd.org (Postfix) with ESMTP id 4SZkZN532Lz3G91; Wed, 22 Nov 2023 01:44:44 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of jamie@catflap.org designates 2001:19f0:7400:8808:123::1 as permitted sender) smtp.mailfrom=jamie@catflap.org; dmarc=pass (policy=none) header.from=catflap.org X-Catflap-Envelope-From: X-Catflap-Envelope-To: freebsd-net@FreeBSD.org Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 3AM1ih6p054725; Wed, 22 Nov 2023 01:44:43 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 3AM1ihPe054724; Wed, 22 Nov 2023 01:44:43 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202311220144.3AM1ihPe054724@donotpassgo.dyslexicfish.net> Date: Wed, 22 Nov 2023 01:44:43 +0000 Organization: Dyslexic Fish 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) References: <9eef5488-e8da-4edd-bc00-baeb5aaf4a23@FreeBSD.org> <032BADD4-0A49-42E2-BAAB-40D2F76C64B9@FreeBSD.org> <31B38FCE-0B67-4122-A202-568150E971E1@karels.net> In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Wed, 22 Nov 2023 01:44:43 +0000 (GMT) X-Spamd-Result: default: False [-3.70 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[catflap.org,none]; R_SPF_ALLOW(-0.20)[+mx:dyslexicfish.net:c]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; MLMMJ_DEST(0.00)[freebsd-net@FreeBSD.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; HAS_ORG_HEADER(0.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US]; FREEFALL_USER(0.00)[jamie]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[6]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SZkZN532Lz3G91 X-Spamd-Bar: --- Kristof Provost 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!