From nobody Wed Jun 12 07:47:27 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 4Vzd1P36pQz5Nx13 for ; Wed, 12 Jun 2024 07:47:37 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Vzd1N55nRz4TS6 for ; Wed, 12 Jun 2024 07:47:36 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of phk@critter.freebsd.dk designates 130.225.244.222 as permitted sender) smtp.mailfrom=phk@critter.freebsd.dk Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id B0410892F8 for ; Wed, 12 Jun 2024 07:47:27 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.18.1/8.16.1) with ESMTPS id 45C7lRmS009492 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 12 Jun 2024 07:47:27 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 45C7lRGZ009491; Wed, 12 Jun 2024 07:47:27 GMT (envelope-from phk) Message-Id: <202406120747.45C7lRGZ009491@critter.freebsd.dk> To: current@freebsd.org Subject: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out From: Poul-Henning Kamp 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-ID: <9489.1718178447.1@critter.freebsd.dk> Date: Wed, 12 Jun 2024 07:47:27 +0000 X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.95 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.98)[-0.976]; NEURAL_HAM_SHORT(-0.97)[-0.973]; FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEFALL_USER(0.00)[phk]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; DMARC_NA(0.00)[freebsd.dk]; FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4Vzd1N55nRz4TS6 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. The main symptom was that DNS was /really/ busted, which makes sense when none of the DNS servers in the 192/8 "swamp" can be reached. Since we all know that it is always DNS(SEC), I spent a lot of time having fun with that, before I noticed the /8 netmask on the interface. I agree that the class A/B/C netmask assumptions should have died long ago. But from a foot-shooting point of view, it makes no sense to default 192.168/16 to a /8 netmask. If we're going to default to /8, at the very least ifconfig should spitting out a very noisy warning and wait 5 seconds before proceeding, when the netmask is not explicitly specified. But I also think we can do better than /8. One option is to go for "limit the damage in RFC1918" and default them according to their size: reach: 10/8 172.16/12 192.168/16 That will prevent the DNS weirdness I had to figure out, and probably still DWIM in most cases. Another option is to default all three to /24, which in my experience is how people deploy RFC1918. A third option is to default any missing netmask to /24 instead of /8, which would be what I would personally have done in the first place. Poul-Henning -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From nobody Wed Jun 12 09:46:49 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 4Vzgg54XpJz5P6Hk for ; Wed, 12 Jun 2024 09:46:57 +0000 (UTC) (envelope-from SRS0=uYUV=NO=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Vzgg52YLgz4hQp for ; Wed, 12 Jun 2024 09:46:57 +0000 (UTC) (envelope-from SRS0=uYUV=NO=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Wed, 12 Jun 2024 11:46:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1718185609; 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: in-reply-to:in-reply-to:references:references; bh=+VP6Q8TuLjCksNdqCDyBJ+q+W22HieAJwxUuGdSlIgk=; b=XDtWHBgLoSt3RZZY1ZEVpSCLmiYUsqkhPqkqPwOUxH46/DgrANmGNMIsLx+Zyfa6sXN9iI hW59UKteObH9GN5ql96pYMffbLqkFCKrK8CvrrGB9sA8maPnr6n8xqdH8J4iEt3vX4LSfY zJp5aMWvTy0hyxcp9wzmfiJlIGr1GdoOJXZIMnS2pB6yxWLp06h6wOOqez3QyssvHvsPeO dyk3gvu4C74fDXrFEr9+LFGzlkWmANt9DEr4dXxD6Fe96aUeTW1JjmwbSRM/Fm0eVUs1XE uF9eq1pQHvOFh/mrm896XE4eKhlsXe2Z8GoelrVGn2c8OsaCXHjmpNWt+qsayQ== From: Ronald Klop To: Poul-Henning Kamp Cc: current@freebsd.org Message-ID: <413984193.6719.1718185609109@localhost> In-Reply-To: <202406120747.45C7lRGZ009491@critter.freebsd.dk> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out 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: multipart/alternative; boundary="----=_Part_6718_235755784.1718185609092" X-Mailer: Realworks (705.87) Importance: Normal X-Priority: 3 (Normal) 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:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4Vzgg52YLgz4hQp ------=_Part_6718_235755784.1718185609092 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Poul-Henning Kamp Datum: woensdag, 12 juni 2024 09:47 Aan: current@freebsd.org Onderwerp: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out > > 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. > > The main symptom was that DNS was /really/ busted, which makes sense > when none of the DNS servers in the 192/8 "swamp" can be reached. > > Since we all know that it is always DNS(SEC), I spent a lot of time > having fun with that, before I noticed the /8 netmask on the interface. > > I agree that the class A/B/C netmask assumptions should have died long ago. > > But from a foot-shooting point of view, it makes no sense to default > 192.168/16 to a /8 netmask. > > If we're going to default to /8, at the very least ifconfig should > spitting out a very noisy warning and wait 5 seconds before proceeding, > when the netmask is not explicitly specified. > > But I also think we can do better than /8. > > One option is to go for "limit the damage in RFC1918" and default > them according to their size: reach: > > 10/8 > 172.16/12 > 192.168/16 > > That will prevent the DNS weirdness I had to figure out, and probably > still DWIM in most cases. > > Another option is to default all three to /24, which in my experience > is how people deploy RFC1918. > > A third option is to default any missing netmask to /24 instead of /8, > which would be what I would personally have done in the first place. > > Poul-Henning > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > > > > What do you thing about defaulting to /32 on a missing netmask? An interface with 1 IP address without any information about the network. All traffic can go to the gateway. Regards, Ronald. ------=_Part_6718_235755784.1718185609092 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Van: Poul-Henning Kamp <phk@phk.freebsd.dk>
Datum: woensdag, 12 juni 2024 09:47
Aan: current@freebsd.org
Onderwerp: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

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.

The main symptom was that DNS was /really/ busted, which makes sense
when none of the DNS servers in the 192/8 "swamp" can be reached.

Since we all know that it is always DNS(SEC), I spent a lot of time
having fun with that, before I noticed the /8 netmask on the interface.

I agree that the class A/B/C netmask assumptions should have died long ago.

But from a foot-shooting point of view, it makes no sense to default
192.168/16 to a /8 netmask.

If we're going to default to /8, at the very least ifconfig should
spitting out a very noisy warning and wait 5 seconds before proceeding,
when the netmask is not explicitly specified.

But I also think we can do better than /8.

One option is to go for "limit the damage in RFC1918" and default
them according to their size: reach:

    10/8
    172.16/12
    192.168/16

That will prevent the DNS weirdness I had to figure out, and probably
still DWIM in most cases.

Another option is to default all three to /24, which in my experience
is how people deploy RFC1918.

A third option is to default any missing netmask to /24 instead of /8,
which would be what I would personally have done in the first place.

Poul-Henning

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
 



What do you thing about defaulting to /32 on a missing netmask?
An interface with 1 IP address without any information about the network. All traffic can go to the gateway.

Regards,
Ronald.
  ------=_Part_6718_235755784.1718185609092-- From nobody Wed Jun 12 10:39: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 4Vzhqx1kK1z5Ly52 for ; Wed, 12 Jun 2024 10:39:41 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Vzhqw62Sxz4mgq for ; Wed, 12 Jun 2024 10:39:39 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 10948892F8; Wed, 12 Jun 2024 10:39:38 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.18.1/8.16.1) with ESMTPS id 45CAdba5010275 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 12 Jun 2024 10:39:37 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 45CAdal6010274; Wed, 12 Jun 2024 10:39:36 GMT (envelope-from phk) Message-Id: <202406121039.45CAdal6010274@critter.freebsd.dk> To: Ronald Klop cc: current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-reply-to: <413984193.6719.1718185609109@localhost> From: "Poul-Henning Kamp" References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> 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-ID: <10272.1718188776.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Wed, 12 Jun 2024 10:39:36 +0000 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:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4Vzhqw62Sxz4mgq Ronald Klop writes: > What do you thing about defaulting to /32 on a missing netmask? > An interface with 1 IP address without any information about the network= . All traffic can go to the gateway. I dont think that will work ? The gateway will not be inside any of the attached networks, so you have n= o route to it ? Poul-Henning -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe = Never attribute to malice what can adequately be explained by incompetence= . From nobody Wed Jun 12 10:52:17 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 4Vzj7G48Fwz5M0Rv for ; Wed, 12 Jun 2024 10:52:58 +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 4Vzj7G3f8hz4pKN; Wed, 12 Jun 2024 10:52:58 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718189578; 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=7OQhkkcmVRwEsxIFKOhUGPDcXP5kFmDItJDiocE/eOw=; b=iGTurnryOdLkDtyoDIRUxoOQJO761omFKNkjJTmJBrMa711pPPQhMCBuAIz/qRZicT5SH5 KkaD55ycJwyi5Cfe77GzA3MVRB0AcIx3g0ddSGIjzrzagsp3XVTxyXqef52/uwdakUzZ3q 5UUrmrxI+eGvaPBpQtGqHsANUJkwFlZ72Yo8co5qPheN5h3IZal7q6Jww5rDyLI4+82yAw 7wmBVDESmlPSIzCxSW8a+KnHaGRkPr8W72m/uuqZuEyaRo/+Kx0fgSx7zqAL1hjiYJ2f+j lKppIyDOlx+di22d97kdW8+oSz9N0D4QLb++a0cSEog3KQ3h9veeIqAbePsCbw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718189578; a=rsa-sha256; cv=none; b=cDm/xVEzOta7mwrbDKkEDKliqdpWuMFMLGOn5EZHVR5ALsTsKopdYraVJ7fO4L2xOtDPiV 0GwhOvBEDFlFFKOcg1bUmIWx/oqSnEx83Z7SDJq1Ak6Ngqa30kmGzyPae5gwJauAbzJvzV irm+ixWEuk1fcKNHVos+gfffCaIRPg7F9X6MbJIxygUNHdkCXFckLdPSN3xsEbs46ysxIQ vFcgFrUgCBamdNWxWMTQU16cdYl3+UFaeS8TBAONRQr5pTtNTzdSit8D4korb+wmJ7oRaV G8NklXz+dOsqlTLw8XfogLa2bg8GFrtg+wRaAgjJeykaJQ0m8I/J6V/FHDPi/A== 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=1718189578; 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=7OQhkkcmVRwEsxIFKOhUGPDcXP5kFmDItJDiocE/eOw=; b=T828Fp9tZsUWx4DjNoi25Np6Xa47zzo6QsgQ3yWQUX8czpGR6UeiZQtnk9iTlrvxOR9wF7 REZ7Hlaq9GpyMgnXZM7G52OhGz6qvwI2DIix/AUJ21d2/36rvoGG4LqMdIH39p3pUsiZz5 SLwQCB5RBVPNPoUZgALcjGs/S7leGcACZpPzT7ZDzVrSLSqZ4Yc3d9nCF3VxL4Lx4SjlX9 elUyzWCAy+N5Sw1wJF7q8JnoD/RLk9l+Sw3jj9TwQsxQPkVboQpjfxgQc/Lan9SHXXYU3Z 77mCA1562NJPNZ3N8UGE9lsNedixOwupPwdnQiK29ehodDj1HmwG75QykXwUaA== 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 4Vzj7G0LNqz14vp; Wed, 12 Jun 2024 10:52:57 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id d7f00b4e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 12 Jun 2024 10:52:56 +0000 (UTC) Date: Wed, 12 Jun 2024 12:52:17 +0200 From: Michael Gmelin To: "Poul-Henning Kamp" Cc: Ronald Klop , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out Message-ID: <20240612125217.68483cf9.grembo@freebsd.org> In-Reply-To: <202406121039.45CAdal6010274@critter.freebsd.dk> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> <202406121039.45CAdal6010274@critter.freebsd.dk> 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 10:39:36 +0000 "Poul-Henning Kamp" wrote: > Ronald Klop writes: > > > What do you thing about defaulting to /32 on a missing netmask? > > An interface with 1 IP address without any information about the > > network All traffic can go to the gateway. > > I dont think that will work ? > > The gateway will not be inside any of the attached networks, so you > have no route to it ? > You can do an interface route hack sysrc static_routes="gateway default" sysrc route_gateway="-host 1.2.3.4 -interface bla0" sysrc route_default="default 1.2.3.4" This is actually quite useful in some setups, but in the context of deciding on default behavior when no mask is given this is probably not very helpful. Cheers -- Michael Gmelin From nobody Wed Jun 12 11:28:38 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 4VzjwW38SSz5M2yS for ; Wed, 12 Jun 2024 11:28:43 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4VzjwW0hjQz4sLr; Wed, 12 Jun 2024 11:28:40 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 5FE37892F8; Wed, 12 Jun 2024 11:28:38 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.18.1/8.16.1) with ESMTPS id 45CBScsd010456 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 12 Jun 2024 11:28:38 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 45CBScQ1010455; Wed, 12 Jun 2024 11:28:38 GMT (envelope-from phk) Message-Id: <202406121128.45CBScQ1010455@critter.freebsd.dk> To: Michael Gmelin cc: Ronald Klop , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-reply-to: <20240612125217.68483cf9.grembo@freebsd.org> From: "Poul-Henning Kamp" References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> <202406121039.45CAdal6010274@critter.freebsd.dk> <20240612125217.68483cf9.grembo@freebsd.org> 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-ID: <10453.1718191718.1@critter.freebsd.dk> Date: Wed, 12 Jun 2024 11:28:38 +0000 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:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4VzjwW0hjQz4sLr -------- Michael Gmelin writes: > You can do an interface route hack I think you misunderstand the situation. We are talking about people who have /etc/rc.conf files which relied on how default netmasks have worked for nearly three decades, Now that we have changed that default, many of them will see a single line rapidly scroll off their console, and a set of very bewilding symptoms of DNS not working correctly. The solution is not for them to apply some weird, complex and unnecessary interface configuration. The solution is for us to not break their configuration in the first place, or at least make it much more obvious to them, where the problem is to be found. Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense ever. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From nobody Wed Jun 12 12:15:49 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 4Vzl1K20CNz5M77G for ; Wed, 12 Jun 2024 12:17:57 +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 4Vzl1K1NGcz3yf8; Wed, 12 Jun 2024 12:17:57 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718194677; 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=r+VQit+D9XEUxHVm75FRFIuSb59x5uiBgBADuKT7zgE=; b=H7fLsv60Tr6D3I2nVUlRzUnwU2/fzr3zXijtz4L9rKDAO1pdAljgM9vhs+RCxqlQ2Ab3av 5v7TDQYvvh/C6vdCdAjHWGKwyXQBVGBuvsZGTFs1zY9el+9iXlZy++R1SjAMr48NqnHoqM KjwmGHuewfYDeouulzR2AKPpmnmlLv94JhPE5uIa0cr6la0eEz1XYKODP2EkKDTlTUN+96 C/UgTXRsbD9PTBXdP9IXbMJiM+xq2Yaus8DjjYVXktjBUuWdK8Bha7gZW77BVzlr+4w+ua fl+tL+r0PYmgvS336EFRg59hn0vbnVLQc3EL1o+fCP68sNeNMwP5pfMB31tEmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718194677; a=rsa-sha256; cv=none; b=LSEIZjOTzKKsTIR/g8Nj+MO/C4ZV1HMlAH2CO6sofJH7K9t6+lZPuavgBpcjVZZ+0gHt56 W6bE+wSWMfudWJTe5w1eFVju4kStT9bSwG7dcg4E+ToZ+LLD3O3mjPmYdETkheEU3abdqw xujW38/o/rtvcSIz4nFPTDYXDGHYYMWhhEOEABapSKv3rX5z/fiozCZeAmMc/d+ywEZfNh BIkOgU9VUnZksUgo1wJ9q7aemDUF6Ie9mCC2+bY0VJMU0QBxiu4vvfy6JhV4SQTIGCtcHs a8pY4iPhuIHfel/BDfAtCvNajYgxkIPMTv7WqgxWTW3jinMHfgTf4PKNL7WbWQ== 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=1718194677; 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=r+VQit+D9XEUxHVm75FRFIuSb59x5uiBgBADuKT7zgE=; b=O1TD/923nYYrqI0U4iedhYw3/xR0IoHdQOl5WQY8GiVl4eqwx0HmElSKVXmp7zYVZrELA5 4vITlkD5aIXGTmgssGKGQFoNLV603U1l4xlsazTBCBzNKFunMDjkD2WV23BTczx2NuhUKE aay6L/VIstxgkeK5PGDDtI25EHvAny/iC6lhn/Gmqc+TcX4ieAxhmUpTRbcPP4Uv5UFQvE wf3y6UIPQ9CzY557rcw2/NKlgcykhdkQqcIXgeBbiqw258JhMj22rApgQcC21EY11n7Spk 1JzhjCzYTb3mP7iRJU686kWSHC6TYkBKHuu723POd2lOI6G+bNYD1bPDrC7sUg== 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 4Vzl1J4Tjrz185R; Wed, 12 Jun 2024 12:17:56 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 6e3650cc (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 12 Jun 2024 12:17:54 +0000 (UTC) Date: Wed, 12 Jun 2024 14:15:49 +0200 From: Michael Gmelin To: "Poul-Henning Kamp" Cc: Michael Gmelin , Ronald Klop , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out Message-ID: <20240612141549.058ec756.grembo@freebsd.org> In-Reply-To: <202406121128.45CBScQ1010455@critter.freebsd.dk> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> <202406121039.45CAdal6010274@critter.freebsd.dk> <20240612125217.68483cf9.grembo@freebsd.org> <202406121128.45CBScQ1010455@critter.freebsd.dk> 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 11:28:38 +0000 "Poul-Henning Kamp" wrote: > -------- > Michael Gmelin writes: > > > You can do an interface route hack > > I think you misunderstand the situation. I completely understand the situation and I can feel your pain, I just wanted to throw in how to reach the default gateway when using a /32 mask. Hence me ending with "in the context of deciding on default behavior when no mask is given this is probably not very helpful". Maybe no news for those following this thread, so sorry if the noise annoyed you. > > We are talking about people who have /etc/rc.conf files which relied > on how default netmasks have worked for nearly three decades, > > Now that we have changed that default, many of them will see a > single line rapidly scroll off their console, and a set of very > bewilding symptoms of DNS not working correctly. We had similar breaking changes with the route command[0] (personally I really would like to support the same syntax for ip/netmasks that is accepted by pf.conf, but that's off-topic). If I remember correctly, there was also a breaking change in the syntax on how to create vlandev's recently. > > The solution is not for them to apply some weird, complex and > unnecessary interface configuration. Agreed. > > The solution is for us to not break their configuration in the first > place, or at least make it much more obvious to them, where the > problem is to be found. Agreed as well. > > Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense > ever. Agreed - for RFC1918 addresses at least applying the natural default netmasks (/8, /10, and /16) would feel more logical. The question is if adding all this magic actually makes sense, or if it wouldn't be better to just not accept an IP without netmask anymore (like suggested, make it emit a warning or even make it an error). Ideally, this should have been a warning/deprecation notice a while ago. Going back to previous behavior is probably not an option at this point. One way forward could be to support validating interface settings in rc.conf by using the a "check" or "configtest" subcommand - this is already used by many rc scripts (e.g., `service pf check`, `service nginx configtest`). So there could be `service netif check`, which can be run manually as well as automatically as part of freebsd-update/pkgbase (ideally on a updated config files, but **before** the installation is actually done). It could also run automatically during boot and display an error + sleep 5 in case it finds any issues to warn the admin. Adding such `check` subcommands could actually benefit many rc scripts (e.g., `service mountlate check`). Being able to call check on all rc scripts supporting it with one command could also help admins to identify problems early and therefore give more confidence when reboot testing configuration changes. Best Michael [0]https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276092 -- Michael Gmelin From nobody Wed Jun 12 12:40:26 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 4VzlWK0wpKz5M95m for ; Wed, 12 Jun 2024 12:40:29 +0000 (UTC) (envelope-from SRS0=uYUV=NO=klop.ws=ronald-lists@realworks.nl) Received: from smtp-relay-int.realworks.nl (smtp-relay-int.realworks.nl [194.109.157.24]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4VzlWJ5v9Jz42n6 for ; Wed, 12 Jun 2024 12:40:28 +0000 (UTC) (envelope-from SRS0=uYUV=NO=klop.ws=ronald-lists@realworks.nl) Authentication-Results: mx1.freebsd.org; none Date: Wed, 12 Jun 2024 14:40:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klop.ws; s=rw2; t=1718196026; 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: in-reply-to:in-reply-to:references:references; bh=lDGNu1RYPZx5JVTGvnQlok5gwHN8VgcIv9MVIzyIyc0=; b=bA/C2r/pBTHYRP46TDBiPPs3yzosyrtkMEaV5wgZAZadiY+/t7M4AlksXG3MTvbPa7UDe+ YLkvz1d/j9fbbBc53WqDYrNPEc3OLAf2AAU4Hqua3sfxcVRgKT1J4reO8JUmKb5fTWBjMY rKbkG9aBP+jyCtx1B9AxUrzGu/lNyCcOHHSj2a0InyQToMt5jtx5Myw8wdgZDPqPG3NjpP n9kcQTfE6jMjBmEAFILI/809lIsHWelcFkZVZwe7I067XZGpXE6t2V2N2WD7HxHFSQI90l /gXT+oN5JQTvxB8DDbHR2ybFCZuzrTsChmUX6O/EX+jpSRXaryOSL8t61tVKJA== From: Ronald Klop To: Poul-Henning Kamp Cc: current@freebsd.org Message-ID: <194188316.10234.1718196026321@localhost> In-Reply-To: <202406121039.45CAdal6010274@critter.freebsd.dk> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> <202406121039.45CAdal6010274@critter.freebsd.dk> Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out 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: multipart/alternative; boundary="----=_Part_10233_1888345337.1718196026318" X-Mailer: Realworks (705.87) Importance: Normal X-Priority: 3 (Normal) 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:3265, ipnet:194.109.0.0/16, country:NL] X-Rspamd-Queue-Id: 4VzlWJ5v9Jz42n6 ------=_Part_10233_1888345337.1718196026318 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Van: Poul-Henning Kamp Datum: woensdag, 12 juni 2024 12:39 Aan: Ronald Klop CC: current@freebsd.org Onderwerp: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out > > Ronald Klop writes: > > > What do you thing about defaulting to /32 on a missing netmask? > > An interface with 1 IP address without any information about the network. All traffic can go to the gateway. > > I dont think that will work ? > > The gateway will not be inside any of the attached networks, so you have no route to it ? > > Poul-Henning > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > > > Ai. Of course. Typed quicker than I was thinking. :-) Well. Then it is maybe best to just error out on boot with a misconfigured network. Or revert back to the pre-14.1 behavior because of POLA. I'll leave it up to you and will make sure I configure my interfaces with a netmask. Regards, Ronald. ------=_Part_10233_1888345337.1718196026318 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Van: Poul-Henning Kamp <phk@phk.freebsd.dk>
Datum: woensdag, 12 juni 2024 12:39
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: current@freebsd.org
Onderwerp: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out

Ronald Klop writes:

> What do you thing about defaulting to /32 on a missing netmask?
> An interface with 1 IP address without any information about the network. All traffic can go to the gateway.

I dont think that will work ?

The gateway will not be inside any of the attached networks, so you have no route to it ?

Poul-Henning

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


Ai. Of course. Typed quicker than I was thinking. :-)

Well. Then it is maybe best to just error out on boot with a misconfigured network. Or revert back to the pre-14.1 behavior because of POLA.
I'll leave it up to you and will make sure I configure my interfaces with a netmask.

Regards,
Ronald.
  ------=_Part_10233_1888345337.1718196026318-- From nobody Wed Jun 12 13:48:32 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 4Vzn2H3bGrz5MGQC for ; Wed, 12 Jun 2024 13:48:55 +0000 (UTC) (envelope-from rb@gid.co.uk) Received: from gid2.gid.co.uk (ns0.gid.co.uk [IPv6:2001:470:94de::240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gid2.gid.co.uk", Issuer "gid2.gid.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vzn2G6Sgkz47lh; Wed, 12 Jun 2024 13:48:54 +0000 (UTC) (envelope-from rb@gid.co.uk) Authentication-Results: mx1.freebsd.org; none Received: from mx0.gid.co.uk (mx0.gid.co.uk [194.32.164.250]) by gid2.gid.co.uk (8.15.2/8.15.2) with ESMTP id 45CDmlJ1022855; Wed, 12 Jun 2024 14:48:47 +0100 (BST) (envelope-from rb@gid.co.uk) Received: from smtpclient.apple (moriarty.gid.co.uk [194.32.164.17]) by mx0.gid.co.uk (8.14.2/8.14.2) with ESMTP id 45CDmgaT023849; Wed, 12 Jun 2024 14:48:42 +0100 (BST) (envelope-from rb@gid.co.uk) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out From: Bob Bishop In-Reply-To: <202406121128.45CBScQ1010455@critter.freebsd.dk> Date: Wed, 12 Jun 2024 14:48:32 +0100 Cc: Poul-Henning Kamp , Michael Gmelin , Ronald Klop Content-Transfer-Encoding: 7bit Message-Id: References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> <202406121039.45CAdal6010274@critter.freebsd.dk> <20240612125217.68483cf9.grembo@freebsd.org> <202406121128.45CBScQ1010455@critter.freebsd.dk> To: "current@freebsd.org" X-Mailer: Apple Mail (2.3774.600.62) 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:6939, ipnet:2001:470::/32, country:US] X-Rspamd-Queue-Id: 4Vzn2G6Sgkz47lh Hi, > On 12 Jun 2024, at 12:28, Poul-Henning Kamp wrote: > > Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense ever. +1 -- Bob Bishop rb@gid.co.uk From nobody Wed Jun 12 14:34:10 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 4Vzp2k0dTDz5MKbv for ; Wed, 12 Jun 2024 14:34:22 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vzp2j5kyRz4FbN for ; Wed, 12 Jun 2024 14:34:21 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 803808D4A126; Wed, 12 Jun 2024 14:34:14 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id A11F32D029D8; Wed, 12 Jun 2024 14:34:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id iHRW49TcDeUy; Wed, 12 Jun 2024 14:34:12 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 898D52D029D2; Wed, 12 Jun 2024 14:34:12 +0000 (UTC) Date: Wed, 12 Jun 2024 14:34:10 +0000 (UTC) From: "Bjoern A. Zeeb" To: Poul-Henning Kamp cc: current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-Reply-To: <202406120747.45C7lRGZ009491@critter.freebsd.dk> Message-ID: <5ss109s8-1086-700s-p199-rpr429on41p9@yvfgf.mnoonqbm.arg> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 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; format=flowed 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:24940, ipnet:2a01:4f8::/32, country:DE] X-Rspamd-Queue-Id: 4Vzp2j5kyRz4FbN On Wed, 12 Jun 2024, Poul-Henning Kamp wrote: > 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? -- Bjoern A. Zeeb r15:7 From nobody Wed Jun 12 14:36:35 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 4Vzp5N30b8z5MLJN for ; Wed, 12 Jun 2024 14:36:40 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Vzp5N0jyqz4GHD for ; Wed, 12 Jun 2024 14:36:39 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 1E905892F8; Wed, 12 Jun 2024 14:36:38 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.18.1/8.16.1) with ESMTPS id 45CEab16011208 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 12 Jun 2024 14:36:37 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 45CEaZ0o011207; Wed, 12 Jun 2024 14:36:35 GMT (envelope-from phk) Message-Id: <202406121436.45CEaZ0o011207@critter.freebsd.dk> To: "Bjoern A. Zeeb" cc: current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-reply-to: <5ss109s8-1086-700s-p199-rpr429on41p9@yvfgf.mnoonqbm.arg> From: "Poul-Henning Kamp" References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <5ss109s8-1086-700s-p199-rpr429on41p9@yvfgf.mnoonqbm.arg> 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-ID: <11205.1718202995.1@critter.freebsd.dk> Date: Wed, 12 Jun 2024 14:36:35 +0000 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:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4Vzp5N0jyqz4GHD -------- 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... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From nobody Wed Jun 12 14:54:53 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 4VzpVf6c9gz5MN0V for ; Wed, 12 Jun 2024 14:55:06 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (pdx.rh.CN85.dnsmgr.net [65.75.216.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4VzpVf3V7kz4JPJ; Wed, 12 Jun 2024 14:55:06 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Authentication-Results: mx1.freebsd.org; none Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 45CEstap041308; Wed, 12 Jun 2024 07:54:55 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 45CEsrJm041307; Wed, 12 Jun 2024 07:54:53 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202406121454.45CEsrJm041307@gndrsh.dnsmgr.net> Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-Reply-To: <202406121128.45CBScQ1010455@critter.freebsd.dk> To: Poul-Henning Kamp Date: Wed, 12 Jun 2024 07:54:53 -0700 (PDT) CC: Michael Gmelin , Ronald Klop , current@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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:10494, ipnet:65.75.216.0/23, country:US] X-Rspamd-Queue-Id: 4VzpVf3V7kz4JPJ > -------- > Michael Gmelin writes: > > > You can do an interface route hack > > I think you misunderstand the situation. > > We are talking about people who have /etc/rc.conf files which relied > on how default netmasks have worked for nearly three decades, > > Now that we have changed that default, many of them will see a > single line rapidly scroll off their console, and a set of very > bewilding symptoms of DNS not working correctly. > > The solution is not for them to apply some weird, complex and > unnecessary interface configuration. > > The solution is for us to not break their configuration in the first > place, or at least make it much more obvious to them, where the problem > is to be found. > > Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense ever. Why have I been bitching for 20 years about how the project just changes "defaults" that effect how a system behavies without any change by the user. In my book these are just plainly WRONG and well, have and continue to bite someone in the ass. No one else seems to complain unless it bites THEM in the ass, well there is ALWAYS and THEM so the project should be far more considerate than they have been, IMHO, about bitting asses, as those asses are connected to the hands that feed this project by growth. It is not that hard to intruduce NEW behavior yet retain the OLD behavior with lots of warning that it is exepcted to change or go away in the future. *Stomps off my soap box, hands phk a bandaid for the bite mark (always, always specify critical values even if they are the default), and retreats to the background* > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. -- Rod Grimes rgrimes@freebsd.org From nobody Wed Jun 12 14:57:06 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 4VzpY041xlz5MMjG for ; Wed, 12 Jun 2024 14:57:08 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4VzpY02mPZz4Kkm; Wed, 12 Jun 2024 14:57:08 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id CC5B5892F8; Wed, 12 Jun 2024 14:57:06 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.18.1/8.16.1) with ESMTPS id 45CEv6iU011316 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 12 Jun 2024 14:57:06 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 45CEv6n5011315; Wed, 12 Jun 2024 14:57:06 GMT (envelope-from phk) Message-Id: <202406121457.45CEv6n5011315@critter.freebsd.dk> To: "Rodney W. Grimes" cc: Michael Gmelin , Ronald Klop , current@FreeBSD.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-reply-to: <202406121454.45CEsrJm041307@gndrsh.dnsmgr.net> From: "Poul-Henning Kamp" References: <202406121454.45CEsrJm041307@gndrsh.dnsmgr.net> 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-ID: <11313.1718204226.1@critter.freebsd.dk> Date: Wed, 12 Jun 2024 14:57:06 +0000 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:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4VzpY02mPZz4Kkm -------- Rodney W. Grimes writes: > *Stomps off my soap box, hands phk a bandaid for the bite mark (always, > always specify critical values even if they are the default), and > retreats to the background* /me hands Rod a glass of lemonade: "It's OK, you're welcome on my lawn :-)" -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From nobody Wed Jun 12 14:57:22 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 4VzpZ40y0Hz5MN9m for ; Wed, 12 Jun 2024 14:58:04 +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 4VzpZ40G6gz4LYX; Wed, 12 Jun 2024 14:58:04 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718204284; 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=S4a2JDOJedB3FV8MYlkPBbXlr8ZKYENqMOlEfHnqzO0=; b=xCgdMwQVKHb5srBdFv6Wt/cTTRysat4v9PjPW4++00NrO7TuOKoFBI8QDEIfy6hL43m4bd epo4Icx6KUaJkDcCUgOUif8sqgTww3Rgb3Wh4REKWlwPd26XB+VlZPub7HYLpvxg+GDCW5 +vlvSaPrT/Chh0CwEpIeSVOFmb8HXSXpZ3B0wgJqBqoE3meGK448s0PuddcVPn25Ak6o8p ZcuMGqoxI4SiQcyEqy7s9He75PsDCnsozz+0W0S89+0jysSDH00tRfjtGOo/2+qUB4WsxG E0PxrI9vKq1tNRQd+vQst7/KgNuuOimZF1Fiy2spM2CPVZdo98+aP2JISIWSAg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718204284; a=rsa-sha256; cv=none; b=whgjQqTDaj+mz2RWlZfJZDfqWhiIdbuPzQdBwmO60lzZXx8DUluJtZVmSV/gSYWAgqdkbP YC8qzxhAtDqIavbrTnKm4thaZ/m6+ffQKuXNEgioHnGQ6DJ41zOvHLN+iBn9YGcp06bfSk nqX/v/NfC/HgKE4jzFApVNqP2ABFtEMzQaiOofQ00nfLBPXrEsfQHcsf6xZUZA3thchqg3 XAfDtdLyRYghTZuJTmNf+Ax1S5+fWLI1ii5LeHMJoFvOxqSLLPhwFddLZ0sFKMhB8KFqlq BenTHEKe1ZvsAjN55P5jeWkBy7AvQBkHaLHsJi1rDVBFOIxNgTenAbru1E897w== 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=1718204284; 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=S4a2JDOJedB3FV8MYlkPBbXlr8ZKYENqMOlEfHnqzO0=; b=vL6wkEKIYaX0zWrlUECi0FLmhmsTC0nw6pkm7jn2QHmd1huV7Rxo8LnPExvhiQ3y/vjXTt rVeDTV6bM1f2RUarHSRKxnx2cby3C4AGWjYib1Ow2g5Nn98haoF+UAccNChUrtCWwgZKo2 DwFi52wW1hj0Mct/mQBA/w1Lacf3FueCCehhw7rVZxfYV3/7hQ9v2tTIptglDQZgOaohZQ 4uNir1QT01XkJyAW4Hxxkk0U+WDF77/PihAm6Na5ULpuQ+VFmnhT8d8jW+F6YnvIx1Cj7y CA2AQfoZ6+LpKANNSfD7bSV6JU1imteZQdUCfmmMiiJmYp0uyOG7OrR3eFFV2g== 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 4VzpZ33sswz19d5; Wed, 12 Jun 2024 14:58:03 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id f53bf6ef (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 12 Jun 2024 14:58:02 +0000 (UTC) Date: Wed, 12 Jun 2024 16:57:22 +0200 From: Michael Gmelin To: "Poul-Henning Kamp" Cc: "Bjoern A. Zeeb" , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out Message-ID: <20240612165722.5ec89d11.grembo@freebsd.org> In-Reply-To: <202406121436.45CEaZ0o011207@critter.freebsd.dk> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <5ss109s8-1086-700s-p199-rpr429on41p9@yvfgf.mnoonqbm.arg> <202406121436.45CEaZ0o011207@critter.freebsd.dk> 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 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 -m -- Michael Gmelin From nobody Wed Jun 12 15:06:23 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 4Vzplt4sfMz5MP6C for ; Wed, 12 Jun 2024 15:06:34 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vzplt2BsXz4Nxd; Wed, 12 Jun 2024 15:06:34 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; none Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 89B2E8D4A127; Wed, 12 Jun 2024 15:06:25 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 235DF2D029D9; Wed, 12 Jun 2024 15:06:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id O8XV_Ulzi9tZ; Wed, 12 Jun 2024 15:06:24 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 38C1D2D029D2; Wed, 12 Jun 2024 15:06:24 +0000 (UTC) Date: Wed, 12 Jun 2024 15:06:23 +0000 (UTC) From: "Bjoern A. Zeeb" To: Michael Gmelin cc: Poul-Henning Kamp , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-Reply-To: <20240612165722.5ec89d11.grembo@freebsd.org> Message-ID: <05ors010-q60q-s261-no16-1577rq1p1610@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> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 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; format=flowed 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:24940, ipnet:195.201.0.0/16, country:DE] X-Rspamd-Queue-Id: 4Vzplt2BsXz4Nxd 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. -- Bjoern A. Zeeb r15:7 From nobody Wed Jun 12 15:11:14 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 4VzpsP0Z31z5MPB6 for ; Wed, 12 Jun 2024 15:11:21 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:13b:39f::9f:25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VzpsL59lfz4QTG for ; Wed, 12 Jun 2024 15:11:18 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 2a01:4f8:13b:39f::9f:25 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 364A98D4A126; Wed, 12 Jun 2024 15:11:16 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id A9E702D029D8; Wed, 12 Jun 2024 15:11:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id IxtFB7EbDDQ0; Wed, 12 Jun 2024 15:11:14 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (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) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id AFBB92D029D2; Wed, 12 Jun 2024 15:11:14 +0000 (UTC) Date: Wed, 12 Jun 2024 15:11:14 +0000 (UTC) From: "Bjoern A. Zeeb" To: Poul-Henning Kamp cc: current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-Reply-To: <05ors010-q60q-s261-no16-1577rq1p1610@yvfgf.mnoonqbm.arg> Message-ID: <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> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 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; format=flowed X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:39f::9f:25]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zabbadoz.net]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4VzpsL59lfz4QTG 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 -- Bjoern A. Zeeb r15:7 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 From nobody Wed Jun 12 15:35:58 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 4VzqPs1MMMz5MwWq for ; Wed, 12 Jun 2024 15:36:01 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4VzqPs0R0Fz4X4R; Wed, 12 Jun 2024 15:36:00 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Authentication-Results: mx1.freebsd.org; none Received: from critter.freebsd.dk (unknown [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 4B0D5892F8; Wed, 12 Jun 2024 15:35:59 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.18.1/8.16.1) with ESMTPS id 45CFZw9g011606 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 12 Jun 2024 15:35:59 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.18.1/8.16.1/Submit) id 45CFZwgS011605; Wed, 12 Jun 2024 15:35:58 GMT (envelope-from phk) Message-Id: <202406121535.45CFZwgS011605@critter.freebsd.dk> To: Michael Gmelin cc: "Bjoern A. Zeeb" , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-reply-to: <20240612172936.52cf62f0.grembo@freebsd.org> From: "Poul-Henning Kamp" 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> <20240612172936.52cf62f0.grembo@freebsd.org> 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-ID: <11603.1718206558.1@critter.freebsd.dk> Date: Wed, 12 Jun 2024 15:35:58 +0000 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:1835, ipnet:130.225.0.0/16, country:EU] X-Rspamd-Queue-Id: 4VzqPs0R0Fz4X4R -------- Michael Gmelin writes: > @phk From which version did you upgrade? To be totally honest: I'm not entirely sure. Probably 13.x -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From nobody Wed Jun 12 16:14:53 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 4VzrHW4zFSz5N0f7 for ; Wed, 12 Jun 2024 16:15:35 +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 4VzrHW4Qjpz4cbX; Wed, 12 Jun 2024 16:15:35 +0000 (UTC) (envelope-from grembo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718208935; 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=Vi3KDmhvbKGrKSPZbo1I1T2JLNQNiXNB3P+howRwt4Y=; b=PntHzq0hlsfcdsX1xRrjVN8k14d9LQCOrhI/O6CmNdMsrUW+tQyspqtZi/tvtOYqzmCJAw rT2F45ZgXc1DibYagMbs29TyZlYu1ePSqySzL01AUpQGVG8TIn5HcKhFJVoIg03yZfIf3W z2OvMrVA3IsGVoZ2GrJQnmvZ8KgVCKrH/x1rqEKnTLrckKguR2cjbyYI5M2rztQxVHDQ8w FJ4UyzOMNj/LR7eNXFORSrLTeyU2xzFjTZZIsgt0UBJoWm1zzOWPkDIwvMml//Vm21+OZh NMF6KYWzo09WxbwsfBfMYeXXQIT4zlV4ErkwQGallY+jpwPvR2pqXlqOc9i8sw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718208935; a=rsa-sha256; cv=none; b=wPUmSUYkdHv0sF6Rv5JNL9kTIBghJqkbB0+MFE5nxWGTW3Tf27abXdsYVDns8o/JOglW8j 5Y+6ZbSVEMHLv02HUjVpuzEo7VVvBDDqsN4OAy+TEaPcCL95BpnSDJYBMIvPVLqcBR8by8 c/SU+LA6txbnr+RJzc1joEBlyweYV6KO+0HeJ8xiMy1oEcnQfQkS1040P4Cr1vVDUVhk7C Ox8dG7cWxkw4Bz9qVvJsCfPVCofsMQCvpEVp8QhRqR5SlIPXZYY6OuP6SgN6veJ/FyOd5x ZssRiAgdFKAVZcJS5k5TM6ZASqT6+ebIxsq5VQuZJbXoYFD5jcEalvLIcpSl4g== 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=1718208935; 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=Vi3KDmhvbKGrKSPZbo1I1T2JLNQNiXNB3P+howRwt4Y=; b=hSoLhIytVRcVp7hkjYMFZiTTNjzbcN8EGafkDMu7R1xjkX5dSQdAWdX0ts2GEqHDjFk95t GUPbkLCvRo7pVtJ8AyCka9QgzosLQu8PkNB4seWSu+unOnQNo6KFARXAMT/vmGCAQ0e9Tz kCgO1gnbP3ygfpqfMia+q/WaUEwduVF26aFaAAylt9HFSPnK7x2QbW9emjr/4I0ugZ5GtL j36otMOr3NHiiwaPgJQxycG9FMx1jjTkHPu4H1aVMEb7fLg/VaE5uQC6TWldooXPv/23wQ meE4gZWjo0yaDmwkiVXod7O2kzyuUWTsKw4o6NOxeFcSVw0Xk5J5cXSjAZvHyA== 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 4VzrHW0Xylz1Cvd; Wed, 12 Jun 2024 16:15:34 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 3f261a8b (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 12 Jun 2024 16:15:33 +0000 (UTC) Date: Wed, 12 Jun 2024 18:14:53 +0200 From: Michael Gmelin To: "Poul-Henning Kamp" Cc: Michael Gmelin , "Bjoern A. Zeeb" , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out Message-ID: <20240612181453.17715d51.grembo@freebsd.org> In-Reply-To: <202406121535.45CFZwgS011605@critter.freebsd.dk> 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> <20240612172936.52cf62f0.grembo@freebsd.org> <202406121535.45CFZwgS011605@critter.freebsd.dk> 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:35:58 +0000 "Poul-Henning Kamp" wrote: > -------- > Michael Gmelin writes: > > > @phk From which version did you upgrade? > > To be totally honest: I'm not entirely sure. Probably 13.x > @Bjoern I checked again, I'm pretty sure the problem was introduced in https://cgit.freebsd.org/src/commit/?id=4bf44dd73bc0a (this was part of adding netlink into the code). The preparation work by the late Mike Karels was consistent, as one can see in 13.x. So basically the behavior on 13.x is: - ifconfig bla0 10.1.1.1 => 10.1.1.1/8 - ifconfig bla0 192.168.1.1 => 192.168.1.1/24 This is in line with one would expect. On 14.x it's the opposite. The code in 4bf44dd73bc0a68b73f7ee50d52adf5d7cda3eb8 introduced a function to emulate the previous behavior. This function uses IN_CLASSX_NSHIFT as bitmask - therefore 10.1.1.1 uses /24 and 192.168.1.1 uses /8. To fix the code, one has to actually use the bitmask, which is (32 - IN_CLASSX_NSHIFT). So this is simply a bug. I opened a code review request to fix this: https://reviews.freebsd.org/D45570 Best Michael -- Michael Gmelin From nobody Wed Jun 12 18:08:04 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 4VztnZ3XdSz5N9yL for ; Wed, 12 Jun 2024 18:08:18 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VztnZ1mvHz4x5K; Wed, 12 Jun 2024 18:08:18 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-io1-f45.google.com with SMTP id ca18e2360f4ac-7eb75c0d0a7so1296239f.3; Wed, 12 Jun 2024 11:08:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718215696; x=1718820496; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qhAkVNqCFtWjpruR1auJ/Bw5XqpReCPPlkyUY4msUN0=; b=ZKs+VjRj9rVaQtyE9b2wnG/Fakzq88Uv6GIIPZWF6RXeaFEE5mCDnBiqA7WVVDRy9B 5RWk32lWU3O9dli4b59DGd01hKxw/51cLgWDB1s9MiJmvMMcqH50SMVwag2cX/DZaDSx tSoOl9arPfKIfjvnyUvMkpjtXuMWCKHPxHXfZK7L1IbaSret4ssmljgze6YFyjXlgr0h r3kVnDVA0sNMKxQnMO9rxCT/DpbIPqKUFoEs79hX2a1xGCFBvDOEECj3L6bHYawxMcZb rfh2RTDuPjNMchu3KWIiLfZ0rlpU8KwvGkBh4wv6qONuytGUq+AR5eT/nYFmdmWayRyM rpMw== X-Forwarded-Encrypted: i=1; AJvYcCVaPfsuY+coqxA0hzaoE7DJCX+Q/d9UCjTdsxzNqyhakp6MpYxlUOS7yvdE0LG4KUDgz57WYLOwSJQ6fsJUbyHLbJqR X-Gm-Message-State: AOJu0YwFzDFxYW3w2rxTeBfzpJXNnW9+CQfy65d8OsJE0owIfI1t8Z1N AwmH53ZPflVdpMNjNNjGcy9AzBv4iToyzU/8PfDgK5qiUO/IfbawlPjfnBPP4jP7i9O6uHy0OvM 8s6TdhwcS67j/rIFV16TpYrJumHlf/g== X-Google-Smtp-Source: AGHT+IGUHT041mnMgV18yz2xHiy8DBqboMrC9Hj0K21DTVtP/778sBP6F5BYgfaIezVXLFoJkLqG48xWZjw0r27N4Z8= X-Received: by 2002:a05:6602:150b:b0:7eb:6be7:2e6e with SMTP id ca18e2360f4ac-7ebcd0c1861mr342460639f.2.1718215696251; Wed, 12 Jun 2024 11:08:16 -0700 (PDT) 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 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> <20240612172936.52cf62f0.grembo@freebsd.org> <202406121535.45CFZwgS011605@critter.freebsd.dk> <20240612181453.17715d51.grembo@freebsd.org> In-Reply-To: <20240612181453.17715d51.grembo@freebsd.org> From: Ed Maste Date: Wed, 12 Jun 2024 14:08:04 -0400 Message-ID: Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out To: Michael Gmelin Cc: Poul-Henning Kamp , "Bjoern A. Zeeb" , current@freebsd.org Content-Type: text/plain; charset="UTF-8" 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:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4VztnZ1mvHz4x5K On Wed, 12 Jun 2024 at 12:16, Michael Gmelin wrote: > > So this is simply a bug. > > I opened a code review request to fix this: > https://reviews.freebsd.org/D45570 Thank you. An EN for 14.0 and 14.1 (as suggested in your review) is certainly warranted. As for the path forward, what do folks think about changing the warning into an error in main in the near future (prior to 15.0)? That would provide about four years of releases that emit the warning, hopefully enough time for users to notice and update their configuration. From nobody Wed Jun 12 18:29:47 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 4VzvGf3WSHz5ND3n for ; Wed, 12 Jun 2024 18:30:02 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (udns.ultimatedns.net [24.113.41.81]) (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 "ultimatedns.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VzvGf0f5zz50sq for ; Wed, 12 Jun 2024 18:30:01 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Authentication-Results: mx1.freebsd.org; none Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 45CITmb8066287; Wed, 12 Jun 2024 11:29:54 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ultimatedns.net; s=mx99; t=1718216994; x=1718217594; r=y; bh=IBfFdHW1HRV4+OvVh6nUzvvStBnRU8kRsI59SG/IBFo=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=HW/ch945uXlyZa+GZGbWknzHrYXxzQfKYIhArmQc3d9isgIjrMXF5jBZU/c7KcoqH iXTntHKQ5wjOTIrBlPi5ga0qCQotxRVIepV1i4jlrceBdsS30+rMELLkHK/YFLo4zY nfTV/pQf7EOGWMFF9mUOL8zEuA9ONpheshiyvOa8Wdvt2h0YUennKnUCCgg5F7ssEB +UsbGLrY1epX1Ko5zIAwkwB9oOnupS0Zyvwn295Vt4I09TwPy0KolqMsUxht53Rc7G L4rM5s2Hsy9OCh9gUgKm9taCFdfxML6bpd3YwFQL0Addtp5xi0iIripMtAE6tsgwN6 Nc49TjJsE+y6g== 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 Date: Wed, 12 Jun 2024 11:29:47 -0700 From: Chris To: Poul-Henning Kamp Cc: current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-Reply-To: <202406120747.45C7lRGZ009491@critter.freebsd.dk> References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> User-Agent: UDNSMS/17.0 Message-ID: <8f38acff4a9d2e33b801dcde1b2bcdcb@bsdforge.com> X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit 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:11404, ipnet:24.113.0.0/16, country:US] X-Rspamd-Queue-Id: 4VzvGf0f5zz50sq On 2024-06-12 00:47, Poul-Henning Kamp wrote: > 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. > > The main symptom was that DNS was /really/ busted, which makes sense > when none of the DNS servers in the 192/8 "swamp" can be reached. > > Since we all know that it is always DNS(SEC), I spent a lot of time > having fun with that, before I noticed the /8 netmask on the interface. > > I agree that the class A/B/C netmask assumptions should have died long ago. > > But from a foot-shooting point of view, it makes no sense to default > 192.168/16 to a /8 netmask. > > If we're going to default to /8, at the very least ifconfig should > spitting out a very noisy warning and wait 5 seconds before proceeding, > when the netmask is not explicitly specified. > > But I also think we can do better than /8. > > One option is to go for "limit the damage in RFC1918" and default > them according to their size: reach: > > 10/8 > 172.16/12 > 192.168/16 > > That will prevent the DNS weirdness I had to figure out, and probably > still DWIM in most cases. > > Another option is to default all three to /24, which in my experience > is how people deploy RFC1918. > > A third option is to default any missing netmask to /24 instead of /8, > which would be what I would personally have done in the first place. I couldn't agree more. CPEs, WiFi AP's and most other network(ing) equipment that most users encounter, generally default to a /24 (255.255.255.0). IMHO this would result in the least amount of POLA. :) > > Poul-Henning --Chris From nobody Thu Jun 13 21:42:23 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 4W0bVP4vCSz5PPHy for ; Thu, 13 Jun 2024 21:42:37 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W0bVN5Bcfz49CS for ; Thu, 13 Jun 2024 21:42:36 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.45 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com Received: by mail-io1-f45.google.com with SMTP id ca18e2360f4ac-7eb7bf1357cso61666139f.1 for ; Thu, 13 Jun 2024 14:42:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718314955; x=1718919755; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lwWPuHkEy/cwwwkcZwWOgSlc8sShqQ0uu4XGW6rmEp0=; b=K3T4+ntqRqEGyASBRe7S5bBMReCPI8Vh0WMFWnG/F7i83Ar9FsDJrZIVOD0GJX/CMJ 1Z7RovoGaFiHUvz0sV99x1s0cVazmsnDdnPGkt0l4A57WmPBRcFMA3nP8dL4NM0WL+in 5uL+5LP8yq5SbpQEiADcon3MmU7UZMgbo3KqrgJpHv7eW70Kap0sv3rLN0bpO6OTfQWM hUvORN/Lh753jXkF1i3gi9D6TiCC+TVG5qZ6Xe5Zv87mdX2bst28dGmvegt/xaKatseM XU8+0zRgO0rh0oJ+dpqvKu1R8WcSZNUFXBJ1bb+I8Pxxs5gOYD/0+7FfdqoWvLHFFJZk 0FSQ== X-Gm-Message-State: AOJu0Ywq6GbtYo7tlsXRKhbfJg1p5n9DgNCaPt9XWG2D8CHYtGnErf0T xWCm2OlQmE3nYEsN0TlMLNa+v2V0IRqSiikXlHjPxlEVLvHc6m3H4fbLH0OJfTWyyFtUloMy7r3 k7HLjRRlN0mILbQLNpWESJKjuVzLXyTc3 X-Google-Smtp-Source: AGHT+IG40fTtolV/Qp1r82pZ8IySXhioPs215sSbUha+YGLVuXMnihKYeWfDtX1C64+2h8M2HfhHkNc+G4HLbJND25M= X-Received: by 2002:a05:6602:168d:b0:7eb:7427:f878 with SMTP id ca18e2360f4ac-7ebeb63e338mr73644839f.19.1718314954947; Thu, 13 Jun 2024 14:42:34 -0700 (PDT) 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 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> <20240612172936.52cf62f0.grembo@freebsd.org> <202406121535.45CFZwgS011605@critter.freebsd.dk> <20240612181453.17715d51.grembo@freebsd.org> In-Reply-To: From: Ed Maste Date: Thu, 13 Jun 2024 17:42:23 -0400 Message-ID: Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out To: current@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.87 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.974]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; FREEFALL_USER(0.00)[carpeddiem]; MLMMJ_DEST(0.00)[current@freebsd.org]; TO_DOM_EQ_FROM_DOM(0.00)[]; R_DKIM_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.45:from]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.45:from] X-Rspamd-Queue-Id: 4W0bVN5Bcfz49CS On Wed, 12 Jun 2024 at 14:08, Ed Maste wrote: > > As for the path forward, what do folks think about changing the > warning into an error in main in the near future (prior to 15.0)? That > would provide about four years of releases that emit the warning, > hopefully enough time for users to notice and update their > configuration. I opened a review in https://reviews.freebsd.org/D45585 to turn it into an error. I've intentionally made it a minimal change to avoid conflicts on future MFCs; it could be cleaned up and simplified once older branches pass EOL. From nobody Thu Jun 13 23:42:46 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 4W0f9J2wvYz5MMtr for ; Thu, 13 Jun 2024 23:43:00 +0000 (UTC) (envelope-from freebsd-current-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 4W0f9H4Xlbz4Mmd; Thu, 13 Jun 2024 23:42:59 +0000 (UTC) (envelope-from freebsd-current-local@be-well.ilk.org) Authentication-Results: mx1.freebsd.org; dkim=none ("invalid DKIM record") header.d=be-well.ilk.org header.s=selector header.b=ifPwvxq3; dmarc=pass (policy=none) header.from=ilk.org; spf=pass (mx1.freebsd.org: domain of freebsd-current-local@be-well.ilk.org designates 23.30.133.173 as permitted sender) smtp.mailfrom=freebsd-current-local@be-well.ilk.org Received: from lowell-Ubuntu.lan (lowell-Ubuntu.lan [172.30.250.95]) by be-well.ilk.org (Postfix) with ESMTP id 8B69520A05; Thu, 13 Jun 2024 19:42:46 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=be-well.ilk.org; s=selector; t=1718322173; bh=S+G+lNNT8/YG43l3HQ0WVXnHoPXvAn8G9P/epYWCrZw=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=ifPwvxq3DDmJ4bkXWoNTv2G3fmpyxfzR0QQ0rskVfpf7mY0zMsc2OFJEsFDs30F8Z QB+2TdLub82Wz8O/4ksT57+jx9avrFvaol0CWrTdEEwmI0sBrNF/ImbhpBkBrKSof+ XvLO5rhFmPaG7qYZEHO1ph+A/vM4F+2ZDgzeO6m0= Received: by lowell-Ubuntu.lan (Postfix, from userid 1147) id 3A9611080470; Thu, 13 Jun 2024 19:42:46 -0400 (EDT) From: Lowell Gilbert To: "Poul-Henning Kamp" Cc: Michael Gmelin , Ronald Klop , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-Reply-To: <202406121128.45CBScQ1010455@critter.freebsd.dk> (Poul-Henning Kamp's message of "Wed, 12 Jun 2024 11:28:38 +0000") References: <202406120747.45C7lRGZ009491@critter.freebsd.dk> <413984193.6719.1718185609109@localhost> <202406121039.45CAdal6010274@critter.freebsd.dk> <20240612125217.68483cf9.grembo@freebsd.org> <202406121128.45CBScQ1010455@critter.freebsd.dk> Date: Thu, 13 Jun 2024 19:42:46 -0400 Message-ID: <44le38z9xl.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.69 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-0.99)[-0.995]; NEURAL_HAM_SHORT(-0.99)[-0.991]; DMARC_POLICY_ALLOW(-0.50)[ilk.org,none]; R_SPF_ALLOW(-0.20)[+a]; RCVD_NO_TLS_LAST(0.10)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; R_DKIM_PERMFAIL(0.00)[be-well.ilk.org:s=selector]; ASN(0.00)[asn:7922, ipnet:23.30.0.0/15, country:US]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[current@freebsd.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[be-well.ilk.org:~] X-Rspamd-Queue-Id: 4W0f9H4Xlbz4Mmd "Poul-Henning Kamp" writes: > Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense ever. Well, not in the last 30 years or so, anyway. From nobody Fri Jun 14 13:42:09 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 4W10nr6Jpnz5NtYq for ; Fri, 14 Jun 2024 13:42:24 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (pdx.rh.CN85.dnsmgr.net [65.75.216.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W10nr08ytz4V2c; Fri, 14 Jun 2024 13:42:23 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Authentication-Results: mx1.freebsd.org; none Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 45EDgCv7049368; Fri, 14 Jun 2024 06:42:12 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 45EDg9Al049367; Fri, 14 Jun 2024 06:42:09 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202406141342.45EDg9Al049367@gndrsh.dnsmgr.net> Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-Reply-To: <44le38z9xl.fsf@be-well.ilk.org> To: Lowell Gilbert Date: Fri, 14 Jun 2024 06:42:09 -0700 (PDT) CC: Poul-Henning Kamp , Michael Gmelin , Ronald Klop , current@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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:10494, ipnet:65.75.216.0/23, country:US] X-Rspamd-Queue-Id: 4W10nr08ytz4V2c > "Poul-Henning Kamp" writes: > > > Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense ever. > > Well, not in the last 30 years or so, anyway. No, never ever did /8 make since on 192.*.*.*, that has always been class C address space. -- Rod Grimes rgrimes@freebsd.org From nobody Fri Jun 14 19:04:29 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 4W17xY4QL8z5PLnn for ; Fri, 14 Jun 2024 19:04:33 +0000 (UTC) (envelope-from mat@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 4W17xY3w8Wz4KSF; Fri, 14 Jun 2024 19:04:33 +0000 (UTC) (envelope-from mat@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718391873; 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: in-reply-to:in-reply-to:references:references; bh=guiIe3sGBwG3tRSotwIXZR1xyc48NuKa732zRsxElG0=; b=HRgKBl25OCnfAjDqDftspvAzph888xiklPioUgUTPZnzTLknzkm21j+q78uty20WwHW/1s /hJwwOxDW/p1ZlvFHUi+qGETydjsCW6qrgpdH29z8RUH0tZcVe+YN2Z19QsrMWDqhwPBK7 uYjKnMbqJ5Xc1qXEdpbeFQuQ3fUXGXKgVguKt5uQ3WmugcWQnQE01RR0yk2DyU5u7my7gg mxkCqF8m2vLUPv4v2EaXVJK/ZlQ62nDlCKA8YneEOyeX7xhL9BfD/MZ1oKmQJXzgMCM+h+ UYeuEwfwWbX36isbXlDvOSX2PE3GruS01vMOG8MvEppkEoLlHwv1mshisloLyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718391873; a=rsa-sha256; cv=none; b=AjJ760RouozBjoWoVo7VyxC4H0XKZYbq1XX2yUHIWCAMIO0rvlIqXIdVCmVty3PauTFQgi wD6TwylXGk9ZztgxmO0wH7p1E7KCx6a9p1ZhDmtJMwHeh0XU8H2yjnsozDcEMY04zEKPgn 4SrYaEd20E4NB6Cxebi0wtX1sTviNcM1w1IlNyiSkeqsb8tNMjbTOj+kFg2C8vsxAwJysP GzaDJenv8I3MZxJ10T1QEzv8QMF0cpdaaQgqyuU85AYcDExntOmx67ab1g+RFVV/+0NvQ7 IZjqVfMmV3DQeo+uOyEWodazoLPTh9Ojo3vWy4acvb4mIAXW+VTsa5vyp2V1DA== 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=1718391873; 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: in-reply-to:in-reply-to:references:references; bh=guiIe3sGBwG3tRSotwIXZR1xyc48NuKa732zRsxElG0=; b=HYF2J/kb8XLucoqWml5p5165eSIYuUxM/KWYKQIIOlNEKT2A9TVglhd52pRdYnCRjns5aL lc78UtCp2yloqqd5ZUXzvLcby78A8EHqQ3kvrKjQGuJA3JOvbf2oJVWxKxTVakFomfG5rA zebdOrniNdlMtQPN4dfD8LCtEDJLrzOhp2eecpo1Q7iZI2SsIzO4oZrBn8xW/pVPiXQI4K NAp4j6KvS7lejASOXB0lZFn6fESuGOqcwXy47tAUiHWlD4HZZ2uBVKBAeUv3uX8j5+MFAX zyb+D0ulmOHiQRck7+19OWO302tr9QoJb/qsYoerOuPhKEgYHon1u/JHG1tuEw== Received: from relay.mat.cc (eqx1.mat.cc [79.143.244.49]) (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 "cow.mat.cc", Issuer "R3" (verified OK)) (Authenticated sender: mat/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4W17xY2chsz1Gc9; Fri, 14 Jun 2024 19:04:33 +0000 (UTC) (envelope-from mat@freebsd.org) Received: from aching.in.mat.cc (unknown [IPv6:2a01:e0a:836:f670:1f45:92be:4ae0:e165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by relay.mat.cc (Postfix) with ESMTPSA id B9F731FDC2; Fri, 14 Jun 2024 21:04:30 +0200 (CEST) Date: Fri, 14 Jun 2024 21:04:29 +0200 From: Mathieu Arnold To: "Rodney W. Grimes" Cc: Lowell Gilbert , Poul-Henning Kamp , Michael Gmelin , Ronald Klop , current@freebsd.org Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out Message-ID: References: <44le38z9xl.fsf@be-well.ilk.org> <202406141342.45EDg9Al049367@gndrsh.dnsmgr.net> 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: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="svpsecqemsp5mqxz" Content-Disposition: inline In-Reply-To: <202406141342.45EDg9Al049367@gndrsh.dnsmgr.net> --svpsecqemsp5mqxz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 14, 2024 at 06:42:09AM GMT, Rodney W. Grimes wrote: > > "Poul-Henning Kamp" writes: > >=20 > > > Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense = ever. > >=20 > > Well, not in the last 30 years or so, anyway. >=20 > No, never ever did /8 make since on 192.*.*.*, that has always been > class C address space. I think what Poul-Henning meant is that 31 years ago, in 1993, classless inter-domain routing (CIDR) was introduced by the IETF, and it rendered "class"es of ip addresses obsoletes. So, class C address spaces has been dead for 31 years :-) --=20 Mathieu Arnold --svpsecqemsp5mqxz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQITBAABCgB9FiEE9XJBpJetWizkEBUef2IOCp6dQb4FAmZslDxfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY1 NzI0MUE0OTdBRDVBMkNFNDEwMTUxRTdGNjIwRTBBOUU5RDQxQkUACgkQf2IOCp6d Qb5LnwwAygXz0OcQ/RQti+MhGjaIBzadIrB5jSMZdzgKUWbFU32yIlIx3y1XFyue oEp7oXMx0GyOj0u9aNlcNA9kdo5BjQSDg4LYDlAIHyJTXpVIdU1HjV4GWZ+k9b+D g4Jr0HGOiE1bw26gxAwSFg+J8933DA7auVIkMqPLl7d9k8SgYUdsQ9C5qTpRedIo yXQJLYRp2PmBb+v/QYy93qodAnmV7TAk1RbmayLRt46t3uDRq9Zfr/sUv7cKPqtn /EaBsh0mKyZLPKJw83G0gfg8wI5CV0BMVXlvhrHEw6RYm5cHxgNRxd5BYkULAB6H 8xpk/4SZdi3C3WUdCxIkPyAxQiII/89eVlfUdfc5chKOG7Fj35C3zrVWGH83CQ0+ J7T08GA492y3NTXnk4YuwvinJDh827HP6EJCXzma5bFiye/FGVsn5CS+jLqjwgjj a/h3US1E3MUfBSr7caDmFtpLm3cm/myAx59lKGPzZNHYJpZRP+QT9BrM3/7E5ls0 gYl9y9bI =7GYh -----END PGP SIGNATURE----- --svpsecqemsp5mqxz-- From nobody Fri Jun 14 20:54:10 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 4W1BNN1M6Bz5PVVl for ; Fri, 14 Jun 2024 20:54:28 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (pdx.rh.CN85.dnsmgr.net [65.75.216.6]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W1BNM55ryz4XbR for ; Fri, 14 Jun 2024 20:54:27 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Authentication-Results: mx1.freebsd.org; none Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 45EKsBXp050541; Fri, 14 Jun 2024 13:54:11 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 45EKsARM050540; Fri, 14 Jun 2024 13:54:10 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202406142054.45EKsARM050540@gndrsh.dnsmgr.net> Subject: Re: 14.1-R rc.conf/ifconfig netmask issue was really hard to figure out In-Reply-To: To: Mathieu Arnold Date: Fri, 14 Jun 2024 13:54:10 -0700 (PDT) CC: "Rodney W. Grimes" , Lowell Gilbert , Poul-Henning Kamp , Michael Gmelin , Ronald Klop , current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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:10494, ipnet:65.75.216.0/23, country:US] X-Rspamd-Queue-Id: 4W1BNM55ryz4XbR > On Fri, Jun 14, 2024 at 06:42:09AM GMT, Rodney W. Grimes wrote: > > > "Poul-Henning Kamp" writes: > > > > > > > Defaulting to a /8 netmask for 192.168.x.y does not make *any* sense ever. > > > > > > Well, not in the last 30 years or so, anyway. > > > > No, never ever did /8 make since on 192.*.*.*, that has always been > > class C address space. > > I think what Poul-Henning meant is that 31 years ago, in 1993, classless > inter-domain routing (CIDR) was introduced by the IETF, and it rendered > "class"es of ip addresses obsoletes. > > So, class C address spaces has been dead for 31 years :-) NO! That is an incorrect interpretation of what CIDR does, CIDR did NOT remove the Class A/B/C applied to address space, it simply added functionality (supernetting and subnetting) of the A/B/C space that allows you to do things DIFFERENT than the default /8 /16 and /24 bit prefix length that classfull addresses implied. > -- > Mathieu Arnold -- Rod Grimes rgrimes@freebsd.org From nobody Sat Jun 15 00:00:53 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 4W1GWT4nSvz5MJZ3; Sat, 15 Jun 2024 00:00:53 +0000 (UTC) (envelope-from salvadore@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (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 "freefall.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W1GWT41NKz4nVJ; Sat, 15 Jun 2024 00:00:53 +0000 (UTC) (envelope-from salvadore@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718409653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=Zo/nxmY3NMGzs/HocIrbPCQuSo5fsPZ9J+VRhg7pgRI=; b=BmXpTEnXKfoikxGyck0PIOkZxmX0oSBzFLMZQuC59VwG2YT08oBzIm/Mm2T1u2dv4279vg KSR5/RhzqZMkuwNF0AcFDJHiajh6Ix2JxuJ72Rx8kf8fT9S7T+j9wNfSJ1NAY6VzM/2twq 4w9/T29+tmU7JFqN//lgMIwofMMHUuUC60yefUVygOTgmwEjGNq8TNNDvgHfBlaYot7zg/ CRaAiCKrfGunT02/kn2WAGKkI7+4f1RFRLVmvuMwnqIXJ6764BXe8DUnBYrVhDZRsyk2pb ggyTx8+eoBLP7x3Tq4Pt1OP+nKeK9rU/+bn3qpJPHmVr9FeGnS2cgONgh+IM/A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718409653; a=rsa-sha256; cv=none; b=kvkV+3E6Xe+VSv1xTwQjBcaNWbqx9G1362joPwIrgsuW7hqCAnKWmWqZ9FSVBd3XVW8Iun z4+6Al072wIPu95htdwBrB4lwXjPSZwtwoONXJaX4uM6V/zwSRgrohMhzW1VcgNm553EhJ r9eaiPXrhaQ2HEIoM1LjW5xgHEttNW6AY5mZijn1tLeELZeKTBoNbSk95TfXWBhkK+PKA6 9Zslq7X+yiYSyJAy9L+YxhaUABmz23uQxAez5bOiJJugO8TGRKaeXE+KDFY14pEGzH5zeg wqjejiTXu8+IDDSkQbiViBCQqgnYyDI5AY9Cvs19MiIpLXiz9JmazgEYu/ws+Q== 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=1718409653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=Zo/nxmY3NMGzs/HocIrbPCQuSo5fsPZ9J+VRhg7pgRI=; b=xT+JCujCCxHKan68cALKUVf+aUsO5fhnMjOJKD19yZbS1bEUJ+g95gqXUtNf682gi+sPsU phqRb2+ItdseXPo+xke5LYJIPitaomjHgDYveFEVVg48DQmGFOPsQMxm3xUrHUQPwoq6Wo 1/zcUgOc9evqGYki1EqPihAuUoKTiPE4IkN4KM+lKO2PUx1o++BN9WNsjHjVT6IB9hmDtm 2y1xsrjl7pZt4GlUBnC1r1Y8nQGBYApeNHvOJpRH+ukpbryHRdmE8vvL6HWgBS/WJoFKo7 dpUrqadgBVFpyZj+s91ko77E6YLKYOJS8nY2snHzq4SOB2M9oxcrQjq/cSpvTA== Received: by freefall.freebsd.org (Postfix, from userid 1472) id 51428133AA; Sat, 15 Jun 2024 00:00:53 +0000 (UTC) To: freebsd-status-calls@FreeBSD.org Subject: [2 WEEKS LEFT REMINDER] Call for 2024Q2 status reports Cc: freebsd-current@FreeBSD.org,freebsd-hackers@FreeBSD.org,devsummit@FreeBSD.org,info@bsdcan.org,soc-students@FreeBSD.org,soc-mentors@FreeBSD.org Message-Id: <20240615000053.51428133AA@freefall.freebsd.org> Date: Sat, 15 Jun 2024 00:00:53 +0000 (UTC) From: Lorenzo Salvadore 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 Dear FreeBSD Community, The deadline for the next FreeBSD Status Report update is June, 30th 2024 for work done since the last round of quarterly reports: April 2024 - June 2024. I would like to remind you that reports are published on a quarterly basis and are usually collected during the last month of each quarter, You are also welcome to submit them even earlier if you want, and the earlier you submit them, the more time we have for reviewing. Status report submissions do not need to be very long. They may be about anything happening in the FreeBSD project and community, and they provide a great way to inform FreeBSD users and developers about work that is underway or has been completed. Report submissions are not limited to committers; anyone doing anything interesting and FreeBSD related can -- and should -- write one! The following methods are available to submit your reports: * submit a review on Phabricator and add the group "status" to the reviewers list. You should put your reports in the directory doc/website/content/en/status/report-2024-04-2024-06/ (create it if it is missing); * submit a pull request at . You should put your reports in the directory doc/website/content/en/status/report-2024-04-2024-06/ (create it if it is missing); * send an email to status-submissions@FreeBSD.org including your report. An AsciiDoc template is available at . We look forward to seeing your 2024Q2 reports! Thanks, Lorenzo Salvadore (on behalf of status@) From nobody Sun Jun 16 17:11:10 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 4W2KLS6jTFz5P87g; Sun, 16 Jun 2024 17:11:44 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Received: from smtp052.goneo.de (smtp5.goneo.de [IPv6:2001:1640:5::8:30]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4W2KLR50g5z4Ycw; Sun, 16 Jun 2024 17:11:43 +0000 (UTC) (envelope-from freebsd@walstatt-de.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=walstatt-de.de header.s=DKIM001 header.b=jQ2lVpTN; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@walstatt-de.de designates 2001:1640:5::8:30 as permitted sender) smtp.mailfrom=freebsd@walstatt-de.de Received: from hub2.goneo.de (hub2.goneo.de [IPv6:2001:1640:5::8:53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp5.goneo.de (Postfix) with ESMTPS id 779CA240454; Sun, 16 Jun 2024 19:11:40 +0200 (CEST) Received: from hub2.goneo.de (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPS id 9A38E240308; Sun, 16 Jun 2024 19:11:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walstatt-de.de; s=DKIM001; t=1718557898; 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=0n0+RjHXOQT6iCXHLVRRPam81H2YLYG1M5ZIyI+EeD4=; b=jQ2lVpTNMM1FIgAbmqcGxKg6xAPo5cQJBvQVIK4XpwM3qqjcDjD+PNq/OM7npOJlsUG9hW nWoheFtx+dIAcK6hLrdZEhPl/8SCWQHVtqoALU2rQTeZ5osaOA/1swKvcT9WonIXlvrAZ1 fhrh0kxces7U8H9XnHgSjldbEreEawAEsIJ2Udq+26tzAKS4PiPd6fP8EFJu9xvECdKDkz 3LXnwcWGJjbbO8wr4BWjaTLrTlshrfYmk/fbh5jAsLaRlqKEY/ICuQHBjG7T1PpHLPY9af py1gq06KDldE28KsVsAe9bYhNg6GtAXxU7FFDWctsEZArTC6GsI4eeY/E3hZWg== Received: from thor.intern.walstatt.dynvpn.de (dynamic-077-191-020-207.77.191.pool.telefonica.de [77.191.20.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hub2.goneo.de (Postfix) with ESMTPSA id 494D024021E; Sun, 16 Jun 2024 19:11:38 +0200 (CEST) Date: Sun, 16 Jun 2024 19:11:10 +0200 From: FreeBSD User To: Sumit Saxena Cc: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org, FreeBSD CURRENT Subject: Re: git: 8d3c3b52423f - main - mpi3mr: Track IO per target counter during queue poll with local variable Message-ID: <20240616191137.7f7d6a30@thor.intern.walstatt.dynvpn.de> In-Reply-To: <202406061039.456AdXZ4090138@gitrepo.freebsd.org> References: <202406061039.456AdXZ4090138@gitrepo.freebsd.org> Organization: walstatt-de.de 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 X-Rspamd-UID: 9d34ec X-Rspamd-UID: f4f0bd X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.60 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2001:1640:5::8:0/112]; R_DKIM_ALLOW(-0.20)[walstatt-de.de:s=DKIM001]; RCVD_IN_DNSWL_LOW(-0.10)[2001:1640:5::8:30:from]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:25394, ipnet:2001:1640::/32, country:DE]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; HAS_ORG_HEADER(0.00)[]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; DMARC_NA(0.00)[walstatt-de.de]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-all@FreeBSD.org,dev-commits-src-main@FreeBSD.org,freebsd-current@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[walstatt-de.de:+] X-Rspamd-Queue-Id: 4W2KLR50g5z4Ycw Am Thu, 6 Jun 2024 10:39:33 GMT Sumit Saxena schrieb: > The branch main has been updated by ssaxena: > > URL: https://cgit.FreeBSD.org/src/commit/?id=8d3c3b52423f9740da424aa6dd73a20e694a9e08 > > commit 8d3c3b52423f9740da424aa6dd73a20e694a9e08 > Author: Chandrakanth patil > AuthorDate: 2024-06-06 10:28:38 +0000 > Commit: Sumit Saxena > CommitDate: 2024-06-06 10:39:16 +0000 > > mpi3mr: Track IO per target counter during queue poll with local variable > > Reviewed by: imp > Approved by: imp > Differential revision: https://reviews.freebsd.org/D44494 > --- > sys/dev/mpi3mr/mpi3mr_cam.c | 22 ++++++++++++---------- > 1 file changed, 12 insertions(+), 10 deletions(-) > > diff --git a/sys/dev/mpi3mr/mpi3mr_cam.c b/sys/dev/mpi3mr/mpi3mr_cam.c > index e3958ed8daf2..e00d61073d96 100644 > --- a/sys/dev/mpi3mr/mpi3mr_cam.c > +++ b/sys/dev/mpi3mr/mpi3mr_cam.c > @@ -1839,6 +1839,7 @@ int mpi3mr_remove_device_from_os(struct mpi3mr_softc *sc, U16 handle) > { > int retval = 0; > struct mpi3mr_target *target; > + unsigned int target_outstanding; > > mpi3mr_dprint(sc, MPI3MR_EVENT, > "Removing Device (dev_handle: %d)\n", handle); > @@ -1856,16 +1857,17 @@ int mpi3mr_remove_device_from_os(struct mpi3mr_softc *sc, U16 handle) > > target->flags |= MPI3MRSAS_TARGET_INREMOVAL; > > - if (mpi3mr_atomic_read(&target->outstanding)) { > - mpi3mr_dprint(sc, MPI3MR_ERROR, "there are [%2d] outstanding IOs on target: > %d" > - "Poll reply queue once\n", > mpi3mr_atomic_read(&target->outstanding), > - target->per_id); > - mpi3mr_poll_pend_io_completions(sc); > - if (mpi3mr_atomic_read(&target->outstanding)) > - mpi3mr_dprint(sc, MPI3MR_ERROR, "[%2d] outstanding IOs present on > target: %d" > - "despite poll\n", > mpi3mr_atomic_read(&target->outstanding), > - target->per_id); > - } > + target_outstanding = mpi3mr_atomic_read(&target->outstanding); > + if (target_outstanding) { > + mpi3mr_dprint(sc, MPI3MR_ERROR, "there are [%2d] outstanding IOs on target: > %d " > + "Poll reply queue once\n", target_outstanding, > target->per_id); > + mpi3mr_poll_pend_io_completions(sc); > + target_outstanding = mpi3mr_atomic_read(&target->outstanding); > + if (target_outstanding) > + target_outstanding = mpi3mr_atomic_read(&target->outstanding); > + mpi3mr_dprint(sc, MPI3MR_ERROR, "[%2d] outstanding IOs present on > target: %d " > + "despite poll\n", target_outstanding, target->per_id); > + } > > if (target->exposed_to_os && !sc->reset_in_progress) { > mpi3mr_rescan_target(sc, target); > On recent CURRENT (FreeBSD 15.0-CURRENT #6 main-n270784-d1e652bf04b: Sun Jun 16 18:19:49 CEST 2024 amd64) "make installkernel" fails with: [...] --- realinstall_subdir_mpi3mr --- install -T release -o root -g wheel -m 444 mpi3mr.ko /boot/kernel/ install -T dbg -o root -g wheel -m 444 mpi3mr.ko.debug /usr/lib/debug/boot/kernel/ install: /usr/lib/debug/boot/kernel/INS@QhWCmf: No such file or directory *** [_kmodinstall] Error code 71 make[4]: stopped in /usr/src/sys/modules/mpi3mr make[4]: 1 error [...] The problem occurs when diabling makeoptions DEBUG=... in kernel configuration and including: # Debugging support. Always need this: #options KDB # Enable kernel debugger support. #options KDB_TRACE # Print a stack trace for a panic. # For full debugger support use (turn off in stable branch): include "std.nodebug" On another host with the same CURRENT and mostly same configs, the problem does not occur! The differenc between both is: tha failing host hasn't been updated for tha last 20 days, the other one has been updated almost every day. On the failing host, "make cleanworld" has been issued before building world/kernel. /etc/src.conf is also the same on both checked hosts. GENERIC compiles flawless. -- O. Hartmann From nobody Sun Jun 16 23:07:29 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 4W2TDz0G1kz5MCMC for ; Sun, 16 Jun 2024 23:07:31 +0000 (UTC) (envelope-from 01000190234e40fa-8f133fa5-0433-42af-bb1e-94daee767028-000000@amazonses.com) Received: from a8-26.smtp-out.amazonses.com (a8-26.smtp-out.amazonses.com [54.240.8.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W2TDy1YDdz4PDY for ; Sun, 16 Jun 2024 23:07:30 +0000 (UTC) (envelope-from 01000190234e40fa-8f133fa5-0433-42af-bb1e-94daee767028-000000@amazonses.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tarsnap.com header.s=dqtolf56kk3wpt62c3jnwboqvr7iedax header.b="QKY8N/3h"; dkim=pass header.d=amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=SrTWVo1P; dmarc=pass (policy=none) header.from=tarsnap.com; spf=pass (mx1.freebsd.org: domain of 01000190234e40fa-8f133fa5-0433-42af-bb1e-94daee767028-000000@amazonses.com designates 54.240.8.26 as permitted sender) smtp.mailfrom=01000190234e40fa-8f133fa5-0433-42af-bb1e-94daee767028-000000@amazonses.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=dqtolf56kk3wpt62c3jnwboqvr7iedax; d=tarsnap.com; t=1718579249; h=Message-ID:Date:MIME-Version:To:From:Subject:Cc:Content-Type:Content-Transfer-Encoding; bh=PpNwRmdHb6IAjx/Bu7x/P39DC91jWZesFPet9VyAuHc=; b=QKY8N/3h7I/HdTkRprqgz6ii+VAHujkUmy4OWSTXgQiuk/PgFEKtWOyC8+dzQvi/ 1umqfDVcXf3E6fuPQOlFnHnwlSWWgQL1l3DYBRfeYZizJxLb915xOSdxomOBc04tJRS zEFEIdoQ7h/vXZH1YKhKQ5G+g21gHSe7496NpD6w= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1718579249; h=Message-ID:Date:MIME-Version:To:From:Subject:Cc:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=PpNwRmdHb6IAjx/Bu7x/P39DC91jWZesFPet9VyAuHc=; b=SrTWVo1PJ3LXxxCeviux3+ioAG1+XMsrG7OIFFqiWmne2ZXX1ynmUuXdjwgWHR5j ip3JibQFmFavodWbmGEQBwnAZIDr7ZWW2ezz+sUxKZ5eoHMZ2EEhzTMt1pkxEe10WtR c5IxTK9rj/ZEee78NLv2G1ZspyvI2EZxlcABTybo= Message-ID: <01000190234e40fa-8f133fa5-0433-42af-bb1e-94daee767028-000000@email.amazonses.com> Date: Sun, 16 Jun 2024 23:07:29 +0000 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 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "freebsd-current@freebsd.org" , freebsd-virtualization@freebsd.org From: Colin Percival Subject: Heads up: Changes in VM image URLs Autocrypt: addr=cperciva@tarsnap.com; keydata= xsFNBGWMSrYBEACdWRqDn3B3SKO7IG0/fGHYtfs26f3Q5QeAcasy1fQLniwGQWn5rlILhbCD K/jdNoDm5Zxq20eqyffoDNObCjnHgg4tGANdi+RmDy+7CDpE789H8dss9y7Pt5DlGGAXQQnt hxush3EYS/Ctprd9UUL/lzOOLOU1aNtzB84tNrJBtcJmL7OYHfyTSNFxvedqJrrasejIQOLI t/DQ89BPzz+vsKHz7FJPXh3fsVkzLA00DJYcfkgxyABfJNA7U6yMwd4DVSdx/SsvfIDMVXnu UXCXswo106WPZbYGlZPpq0wW6iibtTerJix+8AeuwXvl9O1p8yESK4ErkIxCnmghTSz+pdzj z/6xBRkdDM9VdZ0r+CzsaNXMpDOzFuKyjaiYBdgCLljbDnXIHFcqXenrZ7Xwkm09g/M4uVSh pIUG2RYa6tsHSQoGCp3f2RZv1znfViKQFbbL83QjtPA20AhseZSYbHp1FPhXyy9J0wkGL16L e99g6gdGeIRE82BZjBjKGDkoyDPq+oDRSFl8NtzmIKy+cfz00nViqcTF4bREXEawFGhlpO0X O9q8mijI9iFB6zaPBiSdJGBL5ML5qLTNCl8Zlf4m1TBvmRTqF/lzMHVXHidDoUhpSh/y3AFZ 1KrYc27ztJQywDJPJPWPbtY8YhFLFs377gfP8WldsZjzp8nvoQARAQABzSVDb2xpbiBQZXJj aXZhbCA8Y3BlcmNpdmFAdGFyc25hcC5jb20+wsGRBBMBCAA7FiEEglY7hNBiDtwN+4ZBOJfy 4i5lrT8FAmWMSyYCGwMICwkNCAwHCwMFFQoJCAsFFgMCAQACHgUCF4AACgkQOJfy4i5lrT+i Yg/+PYyJNoFuygtV5t/skcjYmvEC93mnazEvh+x99vGYZnGKeJ8NDOF4QCUzeHquOWxDi8Zl reXyswKcrIquPxxX6+YyGe97VbvLnez3ksfzOYRj1F4qV0Rq8ZNK51+bvIrbcS3SfDaRioAk D7WWwFor8y/hSwxYkfsKbtP5PRcem20JUxuC085zqWLaKv5t5n2CBzAGMjwJaQ3tM3AXVwWJ uJaHA6ot/6fntJlmkfcyCYyyr0D6b0guRj3STbZ2hNn5o2AI+f6LJJ31s2sPFjl6rs7fORf3 hFSNOHDd2HxfVBXFdQy24ROkC4orBBz2xh9GScjxxT/hbXkfufkubFubw7n0HkvHzA3UF+Qq A8JiI3n+d7ocsP0/5BQ2sZdeqPGJgHx6RkAMuW1tJ29wSvCN1qMgFwhYkpQdfvHlociQrimU fvlRfSrBEe8o7tvIuEdpvwvCZSTJqQbVoMw8UHFE7nzyCXUSab5h6PbjakCqim13ekVO2KFF TTPcz5o5jEeUY75tzbIwcDfFbT5KqNjWy06TVdM9VEJDHSfOfxHR3kSEwZ+tT2aTvL3grsUn gFwSNcj4Cl4CRFfUw8zVZY+7O7RiMlhBqykikvUurrdGKc1Scwa0yuppdA6eVvylyTWSQGrQ +uLWtV1LUKN7ZqKJWBkLPt9nS4XZWGyBvxOHYqjOwU0EZYxKtgEQANYfgbtUMVnhjxDHhWLp g5kLHK3YW0TfJKzpXqDB7NiqxHofn4OcbZnVC3MKggcbs9o1/UtsjnlsG8550PfiYkDXvPiO RJwgbGs6MGIDK797C6cnBLQ8xwBa9SL4cl5iQFnhWmt6vwnJ+an/cm5JpYves3wL7jV09qU9 57hkHXEUcl38r4FssZzVcLKPUVTa3Un+QGRTGDGe/f4ctjMaqv0ZCM+l2ixPhf/vqESrfSLv V/+T3dmtUfXjazO3SABvsHwxgGuTTYOlKoPCaebr+BRdqm0xeIShoIlhvTI8y4clchqx/Uxg UG5X2kvU13k3DS3Q8uLE4Et9x1CcZT6WGgBZSR6R0WfD0SDnzufNnRWJ0dEPA2MtJHE7+85R Vi9j/IgZV+y5Ur+bnPkjDG1s2SVciX5v9HQ0oilcBhvx0j5lGE9hhurD9F+fCvkr4KdbCknE 6Y8ce8pCNBUoB/DqibJivOzTk9K9MGB5x0De5TerIrFiaw3/mQC9nGeO9dtE7wvDJetWeoTq 4BEaCzpufNqbkpOaTQILr4V6Gp7M6v97g83TVAwZntz/q8ptwuKQPZ2JaSFLZn7oWUpYXA5s +SIODFHLn6iMoYpBQskHQjnj4lEPJadl4qj+ZKA89iDAKsniyoFXsbJe2CPbMS1yzBxKZq6K D/jpt7BOnuHr/JrXABEBAAHCwXYEGAEIACAWIQSCVjuE0GIO3A37hkE4l/LiLmWtPwUCZYxK tgIbDAAKCRA4l/LiLmWtP3jmEACQrh9gWe8F1Tkw3m6VoHKwLc5he4tX3WpQa//soPO6iGG3 S3WPruQ46NrAaAojoOcKI9UONDO5rxG0ZTX53S+lu2EO47jbcLwOCjaEpjKpDRt9ZXBQE8Xl mtBE9Bp3W9gpjB1nE3KNM1mJYgsK0QdRpwwfh4pVgGpOj8j23I6MCK+v99zEBnpgCn2GX8W/ kctRXHqWwndHysOJtRP/zrl7dDaABF1f9efUl0LL3TD3GJ9VDz+DNOin/uK2a1hiJo8QzTRk PpfUQ2ebzDsrd1i/pOWkMSkdH+rEu4AGrXWtaBwrMyrGkL6Icb6yO+P9/z0W2wlgBf3P1YRt JPgQt/Dj3yvA/UnaV/QmuVQPjl13o24UnJGsZM8XGnNdfWBKkC1Q6VXC4QT+dyBHYH9MuE9d 6oGl8pFM1+cTfEfbM62/rRoPkF1yHMsI/903VxEvuUIKfhEZAVLFyHldooNxuchntHQP9y8J 8Ou9bWYQP7MnEn+kwSwrZkjurfPkan+xQvp6dDYnj3V0GwA5pprBMaB928VIDVOv+1PNQI3t Cvk5VPv/skq+TJRMHW7bFSt8PRa91cUf1FOLIz9APDiJOzXkwxUEHGV3zPSaUhs1JYjyBeGT wDAvtLUdjOnRhEUOwlnIrztmvyciutjJoVzKEEjj5WXnHk9L9kQ1bpAjkjTONw== Cc: FreeBSD Release Engineering Team Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Feedback-ID: ::1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-SES-Outgoing: 2024.06.16-54.240.8.26 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.19 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[tarsnap.com,none]; FORGED_SENDER(0.30)[cperciva@tarsnap.com,01000190234e40fa-8f133fa5-0433-42af-bb1e-94daee767028-000000@amazonses.com]; R_SPF_ALLOW(-0.20)[+ip4:54.240.0.0/18]; R_DKIM_ALLOW(-0.20)[tarsnap.com:s=dqtolf56kk3wpt62c3jnwboqvr7iedax,amazonses.com:s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; TO_DN_SOME(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[amazonses.com:dkim]; ASN(0.00)[asn:14618, ipnet:54.240.8.0/21, country:US]; RCVD_IN_DNSWL_NONE(0.00)[54.240.8.26:from]; RCVD_COUNT_ZERO(0.00)[0]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[cperciva@tarsnap.com,01000190234e40fa-8f133fa5-0433-42af-bb1e-94daee767028-000000@amazonses.com]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[54.240.8.26:from]; RCPT_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[tarsnap.com:+,amazonses.com:+] X-Rspamd-Queue-Id: 4W2TDy1YDdz4PDY Hi everyone, We currently publish a number of VM images on download.freebsd.org: * Generic VM images, with URLs like https://download.freebsd.org/snapshots/VM-IMAGES/15.0-CURRENT/amd64/20240613/FreeBSD-15.0-CURRENT-amd64-ufs-20240613-bb53f071e85a-270741.qcow2.xz https://download.freebsd.org/snapshots/VM-IMAGES/15.0-CURRENT/amd64/20240613/FreeBSD-15.0-CURRENT-amd64-20240613-bb53f071e85a-270741.qcow2.xz https://download.freebsd.org/snapshots/VM-IMAGES/15.0-CURRENT/amd64/Latest/FreeBSD-15.0-CURRENT-amd64-ufs.qcow2.xz https://download.freebsd.org/snapshots/VM-IMAGES/15.0-CURRENT/amd64/Latest/FreeBSD-15.0-CURRENT-amd64.qcow2.xz * BASIC-CI images, with URLs like https://download.freebsd.org/snapshots/CI-IMAGES/15.0-CURRENT/amd64/20240613/FreeBSD-15.0-CURRENT-amd64-BASIC-CI-20240613-bb53f071e85a-270741.raw.xz and https://download.freebsd.org/snapshots/CI-IMAGES/15.0-CURRENT/amd64/Latest/FreeBSD-15.0-CURRENT-amd64-BASIC-CI.raw.xz * BASIC-CLOUDINIT images, with URLs like: https://download.freebsd.org/snapshots/VM-IMAGES/15.0-CURRENT/amd64/20240613/FreeBSD-15.0-CURRENT-amd64-BASIC-CLOUDINIT-20240613-bb53f071e85a-270741.ufs.qcow2.xz and https://download.freebsd.org/snapshots/VM-IMAGES/15.0-CURRENT/amd64/Latest/FreeBSD-15.0-CURRENT-amd64-BASIC-CLOUDINIT.ufs.qcow2.xz A few changes will be happening soon (probably this week for 15.x and next week for 14.x): * The BASIC-CLOUDINIT and BASIC-CI images, which are currently only published for amd64, will also be published for aarch64. * The BASIC-CI images, which currently have names like FreeBSD-15.0-CURRENT-amd64-BASIC-CI.raw.xz will also be published with names like FreeBSD-15.0-CURRENT-amd64-BASIC-CI.ufs.raw.xz (note that we currently only build UFS images for BASIC-CI; if anyone wants ZFS images for BASIC-CI I can add them easily enough). And another change will be happening some time in the next few months: * The non-filesystem-labelled images, which are identical to the UFS images and exist for backwards compatibility with scripts which were written before we added support for non-UFS images, will cease to be published on 15.x (but remain on older branches). In short: If you have code which fetches any of those images, you'll want to use the new URLs which specify the filesystem type explicitly. -- Colin Percival FreeBSD Release Engineering Lead & EC2 platform maintainer Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid