From nobody Tue Nov 21 18:16:13 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 4SZXdH31Qvz523h2 for ; Tue, 21 Nov 2023 18:16:35 +0000 (UTC) (envelope-from freebsd@igalic.co) Received: from mail-4018.proton.ch (mail-4018.proton.ch [185.70.40.18]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "protonmail.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SZXdG5F0kz4mpP; Tue, 21 Nov 2023 18:16:34 +0000 (UTC) (envelope-from freebsd@igalic.co) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igalic.co; s=protonmail2; t=1700590589; x=1700849789; bh=p6Fj/3mVoHq/+Z74/2qgAE8z8Xno2awZ+KzIQWAxZB8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=eljg0ctOfMwMybiA6AAt1dEehT4bKbrZn6WgLuFjNsjj2BEAYto927rNcXk904LT1 HRuMY91Ui5QRRiXXRhMK2+FIqLScghGPeWNPFhRRR3cGmGfC4EXS+8koWZkAfO3wNz 7jFgIbONGHpibrqdBLkastQNFYqIzV4ye3PJzUFsLXdA4Eu0BCV4HA8SCudh2LFZ7p UBggS+qG3aHfwaoVaoCXFB5S3B4JObtbHeTh/g7Pa5FxM7QBPYvovls3mSS/L4wMiM 3rNFyWXns9g4RqFcwF6v3B61CphT//Y0VPtFrqAreeLzT+Vame6uFuaiCXa3i9Mq4B 4YkmuOYfS562A== Date: Tue, 21 Nov 2023 18:16:13 +0000 To: Mike Karels From: =?utf-8?Q?Mina_Gali=C4=87?= Cc: Franco Fichtner , Kristof Provost , freebsd-net@freebsd.org Subject: Re: How to tell if a network interface was renamed (and from what) Message-ID: <4jgQsTSP-ojHZF4kFe2z7vD9qYYVO88M8KvpOXXw_t8JzQZwwzNDyO8cNeDoZ1435qQHTEY91IIzPfmBft3FJScfMrxaT-6GyI5P57qDIkg=@igalic.co> In-Reply-To: References: <032BADD4-0A49-42E2-BAAB-40D2F76C64B9@FreeBSD.org> <31B38FCE-0B67-4122-A202-568150E971E1@karels.net> <3081C679-F5AC-4610-BC6B-00ADA5DC17E7@opnsense.org> Feedback-ID: 66573723:user:proton 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: quoted-printable 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:62371, ipnet:185.70.40.0/24, country:CH] X-Rspamd-Queue-Id: 4SZXdG5F0kz4mpP Hi Mike, > Mina, do you care about epair, or is the behavior I described sufficient > for your purposes?=20 I do deeply care about epair, but for me, ifinfo does the right thing for me: root@irc:~ # ifinfo | grep Interface Interface vnet0 (epair30): Interface lo0 (lo0): for one. For the other. For the main purpose, figuring out in cloud-init what the driver of an interface is / if the interface has been renamed, this is more than sufficient. > Mike Thank you very much, Mina