From nobody Wed Jun 12 15:29:36 2024 X-Original-To: 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 4VzqHF5k0zz5Mvtf for ; Wed, 12 Jun 2024 15:30:17 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4VzqHF4D9Mz4TNL; Wed, 12 Jun 2024 15:30:17 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718206217; 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=lmvbwXbSiSnLrhG83PUA05iBXqyJMF3Z5YYm7Np8z/o=; b=eaIpCDawBvqGDiIpdYOckK/z1BnhMDgPXIaY0YCJEVw7FRXgtJQXiXdUmnVbQVV6H4Vo7t sNftF4JOutw4EyCyrrhDPJRwLGxT7WEXvYD43qAOGQevc20+NiqanC7HGlGTCrgEoIGSjR dvQizU69XE8ziuOwvvKPz+f3DxXDg6AK48W+GzgOEF6MEGfTidjMbKYYvGptSxLPq7UxBU hggmN1gIj+Ub1qroBCePvgH+9znWFtJT0iuXlZbbYhx7Tv/BjMWhcxVdApx6qXYq/AzLBY pp55fOxFXhKpHFZJtOv+Y/z0w4SDPr0zbbTj183KSkI5cX1zdvvIx42pukdl1w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718206217; a=rsa-sha256; cv=none; b=YAjneQjW+CJuzqCVcsl5dD3GSgw5WzsidLUs1+IUtYgLfHk0Q1fuB3QWhkdydeDgpu/Sw+ RZhjHDd1P3i3WnpKnumU9hM+ng1gdd79FoBzTRCKtGG64xsTjSseTqeFko89tFd0glnhpS LHbU3u0bS0yVTaSDIewIogKI9uefdR9dnbaQ+fQCA9TfOmalZjwffrQOM7kyJlHYTojLbI /OtgyZVlmhmKGAmHn8R5qNS1XTe5OO+pRPemXfIYGtFB652/68mwEmKLSfww7D5S8x5aVl mQj07fhvM5iqtgpaMVqLd9y8oVA88O+mxJQjWiMAP5rkMlqjppsPfK7CijUncg== 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=1718206217; 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=lmvbwXbSiSnLrhG83PUA05iBXqyJMF3Z5YYm7Np8z/o=; b=YwMeilCUaTFbHfHs6/g+7JRneYlKBhGSyHm1GzOFP6jUd6NUFK7GlVm6RfAHMwlE76XT6Q I9XAVHzF7717A8fgV2/eJAwbfVx2Ox96ILJocrLN9Dg6Tl1n4gvjlAeulFC9FO7XuAbMgW ng9F4nWsApbEvY+3rzi/0pGcfScJaglRVQ2WjrnAH8LJ+9xNebmZK7hYnxZ2b+HiEvp8A3 LSXE7h8gcLsyj2RrdYYBLRMqB2Y4nN6xZKxinVUYzcqSV4nVdilGMqmOF0l0Ft4obHiOGB pB6UgWazXJK3Cb0Pp0jp1E3YC9c3cJLA7KDw7jmYhkgpRRBItGeJnmJ83adksg== 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 4VzqHF0pH8z19r3; Wed, 12 Jun 2024 15:30:17 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id c2689b68 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 12 Jun 2024 15:30:15 +0000 (UTC) Date: Wed, 12 Jun 2024 17:29:36 +0200 From: Michael Gmelin To: "Bjoern A. Zeeb" Cc: Poul-Henning Kamp , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out Message-ID: <20240612172936.52cf62f0.grembo@freebsd.org> In-Reply-To: <404q3127-9p57-1oqq-qqoo-3479q27830ss@yvfgf.mnoonqbm.arg> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <5ss109s8-1086-700s-p199-rpr429on41p9@yvfgf.mnoonqbm.arg> <202406121436.45CEaZ0o011207@critter.freebsd.dk> <20240612165722.5ec89d11.grembo@freebsd.org> <05ors010-q60q-s261-no16-1577rq1p1610@yvfgf.mnoonqbm.arg> <404q3127-9p57-1oqq-qqoo-3479q27830ss@yvfgf.mnoonqbm.arg> 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 Wed, 12 Jun 2024 15:11:14 +0000 (UTC) "Bjoern A. Zeeb" wrote: > On Wed, 12 Jun 2024, Bjoern A. Zeeb wrote: > > > On Wed, 12 Jun 2024, Michael Gmelin wrote: > > > >> > >> > >> On Wed, 12 Jun 2024 14:36:35 +0000 > >> "Poul-Henning Kamp" wrote: > >> > >>> -------- > >>> Bjoern A. Zeeb writes: > >>> > >>>>> I had a machine with this line in /etc/rc.conf: > >>>>> > >>>>> ifconfig_bla0="192.168.87.11" > >>>>> > >>>>> I found out the hard way, that this defaults to /8 now. > >>>> > >>>> Did you track it down to a specific change? I.e. is this > >>>> ifconfig/netlink or the old kernel change from like two years(?) > >>>> ago? > >>>> > >>>> Do you have a time window when this broke as that'll help people > >>>> to bisect? > >>> > >>> I have no idea, sorry, I just freebsd-updated this one box... > >>> > >> > >> I just tried on 14.0-p6, same there: > >> > >> # ifconfig vtnet0 192.168.87.11 > >> ifconfig: WARNING: setting interface address without mask is > >> deprecated, default mask may not be correct. > >> > >> Interestingly, `ifconfig vtnet0 10.0.0.1` uses "/24" whereas > >> 192.168.87.11 uses "/8". > >> > >> This dates back to: > >> https://cgit.freebsd.org/src/commit/?id=4bf44dd73bc0a > > > > No it pre-dates that chnage. > > > > It goes back to d8237b95552807e937fc389c7e2237679ef0c984 and related > > changes. > > Sorry I hit send too early > > And I think it came out of > > commit 2f35e7d9fa03f27543f347cd6277af5bfc6a7e95 > commit 20d59403961d531467cfab22163f49c131cc8b55 > Hm, the deprecation warning was introduced in 2021 and was already part of 13.1 it seems: https://cgit.freebsd.org/src/commit/?id=4dbba5ab609c9 Going through these various commits, default behavior changed. Just tried on 13.2, where 10.x.x.x gave me /8 and 192.168.x.x gave me /24. @phk From which version did you upgrade? Best -- Michael Gmelin