From nobody Wed Nov 22 02:03:31 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 4SZl041kJ3z51X0c for ; Wed, 22 Nov 2023 02:03:32 +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 4SZl040cHCz3N2S; Wed, 22 Nov 2023 02:03:32 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; none X-Catflap-Envelope-From: 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 3AM23V2j058798; Wed, 22 Nov 2023 02:03:31 GMT (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 3AM23Vtx058797; Wed, 22 Nov 2023 02:03:31 GMT (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202311220203.3AM23Vtx058797@donotpassgo.dyslexicfish.net> Date: Wed, 22 Nov 2023 02:03:31 +0000 Organization: Dyslexic Fish To: mike@karels.net, jamie@catflap.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> <202311220135.3AM1Z8ED054659@donotpassgo.dyslexicfish.net> <40C913A3-E5DC-4FC9-9ECE-937370EFD52D@karels.net> In-Reply-To: <40C913A3-E5DC-4FC9-9ECE-937370EFD52D@karels.net> 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=us-ascii Content-Transfer-Encoding: 7bit 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 02:03:31 +0000 (GMT) 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:20473, ipnet:2001:19f0:7400::/38, country:US] X-Rspamd-Queue-Id: 4SZl040cHCz3N2S Mike Karels wrote: > Here, interface-name was a placeholder for the current name of the > interface. My newer code prints "drivername: igb1" at the end of > the list of values for "ifconfig $interface-name" or "ifconfig -a" > if the -D option is given. I decided that it was better to be able > to get all the translations at once (for humans, anyway). Ahhh, I get you. Sorry for the confusion. I think your solution is perfect. Cheers, Jamie