From nobody Mon Jun 17 15:15:46 2024 X-Original-To: freebsd-current@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 4W2tlR1479z5P3mn for ; Mon, 17 Jun 2024 15:16:51 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W2tlR0VHSz51C8; Mon, 17 Jun 2024 15:16:51 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718637411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R9bTE6UrUc892aw3ZmDcqe5qkX+hmbmbKsb5S/twqQg=; b=j0WvPjo7Y7hnnToUhPqt4XA6n7HdfaFrcKad4VODQ0H6xbJdNC2KKkP0sKlNM4cXcrtCIG TWHV4Dd2Fp3xBBPa7oCrBvNQL4dpE0yB/WDDb87ArVGlLt5vINo1PdrP31cqzZfanrEj3b Ie7xx0pBPjC4umtn7Lk7pZP4iIa8+AtQ98mEsxsuGoxBYhNc5QdCOPkzK+yKj/KKY8mFYk kwDEa7e357mnZmGZlP85fzotBC3o4Ck3NUNvXzQo9ZAGvHbIQsnKxhLHTcNr1+NZARaY1q NwyA9ibdf3qZb/maJiAlSomayRWbrLwJlwTba9FR5WBmY/4iTjXqzF9fvqAEuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718637411; a=rsa-sha256; cv=none; b=XZXw82ygJ6awiM6xi81Fl2wFN5LCOLVn/YgjAbA2CRsUAA1pTTy8X45yJeaOSBrzB2Id45 q+9SRlKkSR4aoTWsoGDMH4GtzD3ilmK1GjazRcsW0tL/GgWau/VBRPdvUDoO4Sevfcerwf nT+av/F9B/O1sVqm1D3glMMgB40GYqXQaCPDfQdlaOu6MaGgurKjHmSKGe0HrQXSx37oho 1iNRIKfmwMQM30ksQi6bDULR42Zv1NqT0tEptelD1rPACPX68vQLeh6Qagjq2qDaHKicQb ikuR7WorCguyTYEcd3MfP0uV/fNzgc7hW9b6Eqr6n/4FwXIqluQ9ZsKPIRRRBA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718637411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=R9bTE6UrUc892aw3ZmDcqe5qkX+hmbmbKsb5S/twqQg=; b=qVUQMwWmHiTNu3usA4+0lXMuonuId2JiBQa9sErWFHsAx78ktL717MoNvJborINxfP3b4R aseQ7tdbY6PJ3TFJ2f/m0r2odwZ0k9ylwv/zUyTqqUMNcLlJ5Xzft15z+E04cXg2FVqjGf xydbBWAXl6QgERqqH9duD6VyJbvJf9kSr461ZRhrnjBISLH1JU8oMQvlnP4DqoreNInd+8 RZ4Vpq4nNVLbrIuHQyS0UC5XE5O1Ayso68AVlznV2AB5qWnWEXi3IiiWZifbhuFIvsGtbK L9umTmySdqgmExugsiEYBEk8Phl3i4JT1MVmOA6xZVbHgc8cPMnT1Exef8bZmA== Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) (Authenticated sender: grembo/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4W2tlQ4mFyzRwj; Mon, 17 Jun 2024 15:16:50 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 299bc0c9 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 17 Jun 2024 15:16:47 +0000 (UTC) Date: Mon, 17 Jun 2024 17:15:46 +0200 From: Michael Gmelin To: Ed Maste Cc: FreeBSD Current Subject: Re: Heads-up: ifconfig address without a mask/width to become an error Message-ID: <20240617171546.3e12a8ed.grembo@freebsd.org> In-Reply-To: References: X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 17 Jun 2024 10:54:29 -0400 Ed Maste wrote: > It is currently possible to specify an IPv4 address without a > netmask/width to ifconfig or in rc.conf, e.g.: > > ifconfig_igb0="192.168.0.2" > > phk recently discovered[1] that ifconfig chose a poor netmask/width > when none was specified. This was not an intentional change in > defaults but rather a bug that has now been fixed by grembo@, in > commit 8a9f0fa42b1c and merged to stable/14 in 048ad7a9ef9f. The fix > will be in FreeBSD 14.2. I am unsure if there will be an EN update for > 14.0/14.1. The bug does not exist in FreeBSD 13.x. > > Specifying an IPv4 address without a mask/width has been deprecated > since the deprecation of classful addressing. As of FreeBSD 13.1 > ifconfig has emitted a warning when no mask/width is specified, and > the intent was to make it an error after a sufficient amount of time > passed. > > I've opened a Phabricator review[2] for ifconfig to change the warning > into an error. I included a link to the review in phk's thread, and > asked for input on timing for landing the change. As there seems to be > consensus to include this change in FreeBSD 15.0 I plan to commit it > soon and am sending this note to increase the visibility of the > upcoming change. > > This will be prominently noted in the 15.0 release notes, and should > be mentioned in release notes for upcoming 13.x and 14.x releases. > > [1] > https://lists.freebsd.org/archives/freebsd-current/2024-June/006047.html > [2] https://reviews.freebsd.org/D45585 > Hi Ed, In case there is no EN, what is the process to add information about issues like this to the release notes? Something like "known issues", which those of us who read the release notes can stumble over and check? This would be useful in general, as it seems like doing ENs is a lot of overhead. Also, if that process would be fast, users would be warned early - especially in a case like this, where the workaround/long term fix is actually fairly trivial (add a netmask to your ifconfig_xxx line). Best Michael -- Michael Gmelin