From nobody Mon Jun 17 14:54: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 4W2tFw0ZVwz5P1lg for ; Mon, 17 Jun 2024 14:54:44 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-f44.google.com (mail-io1-f44.google.com [209.85.166.44]) (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 4W2tFt5r9xz4xrp for ; Mon, 17 Jun 2024 14:54:42 +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.44 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com Received: by mail-io1-f44.google.com with SMTP id ca18e2360f4ac-7eee5740aceso41339839f.3 for ; Mon, 17 Jun 2024 07:54:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718636081; x=1719240881; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vX1XfX0qG+at76UojHjiadYbB1GEYK/KnbvwRyupcpE=; b=WJlBUJsHUjqLPpyfKc7FCEcIu+D1dUuD9V9U+0hcQ90M/i/xMi6zJyvjivbX2P6MfI sRWMPvymDDlhctaCvr0f8M7uds8CZQfPk3iOAW7q70jG3eqpHHs6Za36NRLgL1MSv2YI cjyX3Q/cYTx67sIxuFZRNVCoegXvwZ9Qf3k6MSlnJInW0acOmyvsT3YGZKtDladY8zCB PP+SF6bNpu+C9QRVR7KFpt0otcNYhGoTt9Qr/Yl/sv+KrzDC26qnthInhfSbM4VDlO/p Fc9TKSwU8HWwlmsRGZSPTDtK7g88xehGpNiupmJAKfwFDZLGVKBaDLBQMEyAyo5oiI+Y ROeQ== X-Gm-Message-State: AOJu0Ywx8sb0gKsguiYAiwJ/ofdEnVf6tJpY/KFjKYNiAAOtL3tw2X+d 2F1nH5NHtmy9PttU5tQIxwnE/eRIOj/uwL2onGsHlBo3TcuIwe+hFEubWL8B0eluvwnydoZWFus lyxiE1V1WtRUhCUuCTeq324aF6QBSoQ== X-Google-Smtp-Source: AGHT+IFyUySYw8mOn2uO6ritx0opWh7MxsO6N/Vh+kSmbFMrmXTKljuJZ+iPVzaIk2wKzBBTnxhfQ6XOoY0faeEoktQ= X-Received: by 2002:a05:6602:158b:b0:7eb:7bc9:7fe2 with SMTP id ca18e2360f4ac-7ebeb4d4d62mr1263649039f.8.1718636081019; Mon, 17 Jun 2024 07:54:41 -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 From: Ed Maste Date: Mon, 17 Jun 2024 10:54:29 -0400 Message-ID: Subject: Heads-up: ifconfig address without a mask/width to become an error To: FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.89 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.991]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17:c]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; FREEFALL_USER(0.00)[carpeddiem]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; RCVD_COUNT_ONE(0.00)[1]; R_DKIM_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.44:from]; TO_DOM_EQ_FROM_DOM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.44:from] X-Rspamd-Queue-Id: 4W2tFt5r9xz4xrp It is currently possible to specify an IPv4 address without a netmask/width to ifconfig or in rc.conf, e.g.: ifconfig_igb0="192.168.0.2" phk recently discovered[1] that ifconfig chose a poor netmask/width when none was specified. This was not an intentional change in defaults but rather a bug that has now been fixed by grembo@, in commit 8a9f0fa42b1c and merged to stable/14 in 048ad7a9ef9f. The fix will be in FreeBSD 14.2. I am unsure if there will be an EN update for 14.0/14.1. The bug does not exist in FreeBSD 13.x. Specifying an IPv4 address without a mask/width has been deprecated since the deprecation of classful addressing. As of FreeBSD 13.1 ifconfig has emitted a warning when no mask/width is specified, and the intent was to make it an error after a sufficient amount of time passed. I've opened a Phabricator review[2] for ifconfig to change the warning into an error. I included a link to the review in phk's thread, and asked for input on timing for landing the change. As there seems to be consensus to include this change in FreeBSD 15.0 I plan to commit it soon and am sending this note to increase the visibility of the upcoming change. This will be prominently noted in the 15.0 release notes, and should be mentioned in release notes for upcoming 13.x and 14.x releases. [1] https://lists.freebsd.org/archives/freebsd-current/2024-June/006047.html [2] https://reviews.freebsd.org/D45585