From owner-freebsd-ports-bugs@freebsd.org Sat Nov 7 05:24:31 2020 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F30242E4576 for ; Sat, 7 Nov 2020 05:24:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4CSm0H5r5Nz3rwn for ; Sat, 7 Nov 2020 05:24:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C69C62E4574; Sat, 7 Nov 2020 05:24:31 +0000 (UTC) Delivered-To: ports-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C65362E4935 for ; Sat, 7 Nov 2020 05:24:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CSm0H53LWz3rhR for ; Sat, 7 Nov 2020 05:24:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A0A7712D3 for ; Sat, 7 Nov 2020 05:24:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 0A75OVwx057847 for ; Sat, 7 Nov 2020 05:24:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 0A75OVAH057846 for ports-bugs@FreeBSD.org; Sat, 7 Nov 2020 05:24:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 212480] [NEW PORT] sysutils/ethname: boot-time (re)naming of ethernet devices by MAC address Date: Sat, 07 Nov 2020 05:24:31 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: feature, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2020 05:24:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212480 --- Comment #19 from commit-hook@FreeBSD.org --- A commit references this bug: Author: kevans Date: Sat Nov 7 05:24:07 UTC 2020 New revision: 554342 URL: https://svnweb.freebsd.org/changeset/ports/554342 Log: [NEW PORT] sysutils/ethname: boot-time (re)naming of ethernet devices by = MAC An rc-script for pinning an ethernet network name to a MAC address. -- This isn't typically needed on PCIe systems, but for systems with multiple USB ethernet (ue) devices, which seem to like to come up in non-deterministic order, it is very helpful; doubly so when the system in question is a router / firewall where the network config and security concerns vary wildly from one device to the next. It could also be of use for traditional NICs (PCIe) when adding a new card to a system, for example, and ensuring that the existing, previously configured device sticks to the MAC address, and not having to worry about which ends up /dev/xxxN vs /dev/xxxM. The script inserts itself before netif, waits an adjustable delay for the expected devices to appear, and then renames them as requested by the use= r. All of the device configuration, pf, etc., can be written with the new names. It does not attempt to automatically handle devices added after bo= ot. -- Usage is described in the script, but effectively: $ cat /etc/rc.conf ethname_enable=3D"YES" ethname_foo0_mac=3D"aa:bb:cc:dd:ee:00" ethname_bar_mac=3D"aa:bb:cc:dd:ee:01" # Optionally, otherwise it'll just enumerate all ethname_*_mac vars: ethname_names=3D"foo0 bar" PR: 212480 Submitted by: eborisch gmail com Changes: head/sysutils/Makefile head/sysutils/ethname/ head/sysutils/ethname/Makefile head/sysutils/ethname/distinfo head/sysutils/ethname/pkg-descr --=20 You are receiving this mail because: You are on the CC list for the bug.=