From nobody Mon Nov 20 20:32:35 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 4SYzhy3qQ3z51pQ7 for ; Mon, 20 Nov 2023 20:32:50 +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 4SYzhy14yRz3WDy; Mon, 20 Nov 2023 20:32:50 +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=1700512364; x=1700771564; bh=/OMbolfJl1Mikl1zKt8FLjxJM1P2BGw0I7RghA36Hyw=; 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=O3D21917r/VQ7NzH/sagEpvVsjgy7Ya5bDJPT65qnSSzoT01zpu1I0h3j2ly9Uzdr AIZjmSaS7z2UFB1w8Tw33mOPlCW47gs2WXh7KLM7TT1IMU80+zG1UQRsSwhTNQIgRB BccUPEAfu/zzGRQ6yUXR5/2bObKNJaGy5LAmqbJ7uuSGTzFz5zzqGP/2ci+vulNlpx 8GlJvFqvPZ1eypaOjG0kA9iizL9vG0xO5hml4ykMCNQgUPPcV6SXi3gIJ3wSuX5vXI dV8qALrFf3gH4PCSERMeKutxN1vaDgeW+lUb6IfoJ6nWfqTLn5ocAFNxOn7abmfTK2 oVReHn6ls8YAg== Date: Mon, 20 Nov 2023 20:32:35 +0000 To: Mike Karels From: =?utf-8?Q?Mina_Gali=C4=87?= Cc: Zhenlei Huang , Kyle Evans , freebsd-net@freebsd.org Subject: Re: How to tell if a network interface was renamed (and from what) Message-ID: In-Reply-To: <31B38FCE-0B67-4122-A202-568150E971E1@karels.net> References: <9eef5488-e8da-4edd-bc00-baeb5aaf4a23@FreeBSD.org> <032BADD4-0A49-42E2-BAAB-40D2F76C64B9@FreeBSD.org> <31B38FCE-0B67-4122-A202-568150E971E1@karels.net> 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: 4SYzhy14yRz3WDy > I have a proof of concept that makes the presumed original name > (driver name + unit number) available to ifconfig, which prints > the string with everything else in the standard output format. > I don't think that is the right solution, but the other details > should be easy. I'm tempted to print the driver name and unit > number separately, although possibly as two words using the same > option. It should probably be an option rather than a keyword, > so something like this: >=20 > # ifconfig -N interface-name > igb 1 > # >=20 > Or the unit number could be on a separate option. >=20 > Comments? I like it! > Mike Mina