From nobody Sat May 4 18:35:04 2024 X-Original-To: arch@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 4VWxDh6gBjz5JML2; Sat, 4 May 2024 18:35:16 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 4VWxDh0C4Hz40vt; Sat, 4 May 2024 18:35:15 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-21-232.area1b.commufa.jp [123.1.21.232]) (authenticated bits=0) by www121.sakura.ne.jp (8.17.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 444IZ4JU023705; Sun, 5 May 2024 03:35:05 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Sun, 5 May 2024 03:35:04 +0900 From: Tomoaki AOKI To: Lexi Winter Cc: arch@freebsd.org, net@freebsd.org Subject: Re: review request: changing the default ifconfig(8) address format to CIDR Message-Id: <20240505033504.772826db43da54f323f5e993@dec.sakura.ne.jp> In-Reply-To: References: Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4VWxDh0C4Hz40vt On Sat, 4 May 2024 16:34:03 +0100 Lexi Winter wrote: > hi, > > i've just submitted this PR: > > https://github.com/freebsd/freebsd-src/pull/1216 > > which contains this commit: > > commit 57d273c90ee1c17446236aba25ed0bd291c4f126 (HEAD -> lf/main, hemlock/lf/main) > Author: Lexi Winter > Date: Sat May 4 16:11:21 2024 +0100 > > ifconfig(8): change default IP address format to 'cidr' > > 'netmasks' haven't been used in IP networking for decades. Change the > default address format for both IPv4 and IPv6 addreses in ifconfig(8) to > 'cidr', which prints addreses in the format most users will be more > familiar with. > > The previous format is still available using -finet:hex or -finet6:numeric. > > imp@ suggested i should ask arch@ and net@ about this, so here i am! > > i understand there might be some backward-compat concerns with scripting > here, but it's well past time this change was made, and anyone who > really can't update their scripts can use ifconfig -f or > $IFCONFIG_FORMAT to retain the old behaviour. Hi. If you raally want it to be landed, you should wait at least 2 major releases. Propagate the future change on Relesase Notes at 15.0, then, actually change in 16.0 shoule be the earliest. Maybe 17.0 would be reasonable. This could be toooooooo hazardous on corporate-class users having scripts/configurations for current style. We SHALL give enough YEARS for their admins to look into ALL their scripts/configuratins and fix everything affected. Moreover, if the fixes are widely affecting with their internal apps, they could need to acquire budgets to do so. Possibly, introducing environment variable set in /etc/defaults/rc.conf to select which format to use could help them. With it, they can set it to use current format for all their computers running FreeBSD until they fix all they need. Something like IP_FORMAT=CIDR or IP_FORMAT=NETMASK. Regards. -- Tomoaki AOKI