From nobody Tue Nov 21 06:43:45 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 4SZFG665JCz51wNd for ; Tue, 21 Nov 2023 06:43:58 +0000 (UTC) (envelope-from franco@opnsense.org) Received: from mail.opnsense.org (mail.opnsense.org [81.171.24.236]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SZFG63n20z4KJg; Tue, 21 Nov 2023 06:43:58 +0000 (UTC) (envelope-from franco@opnsense.org) Authentication-Results: mx1.freebsd.org; none Received: from localhost (mail.opnsense.org [127.0.0.1]) by mail.opnsense.org (Postfix) with ESMTP id 0738B159091; Tue, 21 Nov 2023 07:43:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.opnsense.org Received: from mail.opnsense.org ([127.0.0.1]) by localhost (mail.opnsense.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dShVzenWB9qH; Tue, 21 Nov 2023 07:43:56 +0100 (CET) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=opnsense.org; s=dkim; t=1700549036; bh=JfJ3kz/k5VkI+wkmQ3TbM+qp0r/vAWE3rLWpM9i/tKo=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=MMik5Af0nVvmsE7bFoJovWfVTQKlNAgo4TVLejnsbuOhMco7wJcVvsCl1iveiKeJ4 ttVFNJQ2tLTYJvzX1H5MUIKXqQCC4RjQcyLT8Nv+d1XVGmpilBsVw47MoqoDNjlo06 sg5oyZGzbQnCpUef5RtIAsUo/kuOUsA6tuLcUgyo= 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 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: How to tell if a network interface was renamed (and from what) From: Franco Fichtner In-Reply-To: Date: Tue, 21 Nov 2023 07:43:45 +0100 Cc: Kristof Provost , =?utf-8?Q?Mina_Gali=C4=87?= , Zhenlei Huang , Kyle Evans , freebsd-net@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <3081C679-F5AC-4610-BC6B-00ADA5DC17E7@opnsense.org> References: <9eef5488-e8da-4edd-bc00-baeb5aaf4a23@FreeBSD.org> <032BADD4-0A49-42E2-BAAB-40D2F76C64B9@FreeBSD.org> <31B38FCE-0B67-4122-A202-568150E971E1@karels.net> To: Mike Karels X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:60781, ipnet:81.171.0.0/19, country:NL] X-Rspamd-Queue-Id: 4SZFG63n20z4KJg > On 20. Nov 2023, at 23:06, Mike Karels wrote: > > On 20 Nov 2023, at 15:16, Franco Fichtner wrote: > >> All that is really missing is a way to print it via ifconfig command. > > That is trivial to add; I just tested it. It also has problems with > epair. Maybe that isn't an issue for this purpose. Two things to consider: Does epair do it the "right way"? And does it even matter given that this behaviour hasn't had any exposure and is likely ever going to be used as input for another tool? I mean it still tracks the origin in the driver. This way you can even find the epair belonging together. It looks like it should given the design choices. Cheers, Franco