From nobody Sat May 4 19:42:24 2024 X-Original-To: net@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 4VWykP6jxzz5JT21 for ; Sat, 4 May 2024 19:42:37 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VWykP3CxPz4F7g for ; Sat, 4 May 2024 19:42:37 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-34db6a29a1eso530064f8f.1 for ; Sat, 04 May 2024 12:42:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714851756; x=1715456556; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6XOdtRsKjkFpY9uSvQ/n0qkpEFAOiK3ONV1vNQ2umS8=; b=lqSGB515UKfMloQ789JNnf7xvu4J6ZqktnQHnUwMx0qjUdl8fcvjDr3yhMZQVA1dXg MVpE7CAfIJTbNAaOZtRKGO7Nj1qDn+GY5Qa9jLLGqiugu6qarKgOHehIJoNLpdxa3l9k A6CK8AeCMapzD50sKzziFpSk4qCj3u2hrW85yxRFa2WuTTPuLphhl0KhtWdNeZozkwIZ 849UPtJCtp3TnD5nrKoSnkRVD8iRH3FnnqBjbA3ddc8OnAY4fGHUQBfbuwgocoJ/MnrS JTbmdSp+2j1r8V7CiqXat34kqT4epefSs5FvUeK9zSv7/z38xSR0oOj43bKJ05byjZfL XKOA== X-Forwarded-Encrypted: i=1; AJvYcCWu35ViEBGFNqDU+O50WrmdN5T4kvXf2Z7GfmrIz1UDwZ5CQLYeZuLsSH1FU2YH3dUI2LArqOFXdAwxKpTqVks= X-Gm-Message-State: AOJu0Yy/FelkCXh2PGphL7SfabJ2DFPvF52hvKOJCYhTSeyWlAPDWySU EzvK0wen235gBZiTo0DLF1Dlk1zia09zFwH4qnoOLK5RDGTuY3xiZOExn6mC+5Y= X-Google-Smtp-Source: AGHT+IG/0UmHc2kGk8Js/nm3HQWptGOP1cflzO6bpY+56r+sSV++tarsZEND/V845ZkR3E2g4Z3Kqw== X-Received: by 2002:a05:6000:1e84:b0:34d:ae55:8fb9 with SMTP id dd4-20020a0560001e8400b0034dae558fb9mr3623457wrb.66.1714851755493; Sat, 04 May 2024 12:42:35 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id p13-20020a5d638d000000b0034de69bb4bcsm6760504wru.85.2024.05.04.12.42.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 May 2024 12:42:35 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: review request: changing the default ifconfig(8) address format to CIDR From: Jessica Clarke In-Reply-To: Date: Sat, 4 May 2024 20:42:24 +0100 Cc: arch@freebsd.org, net@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <2A85E653-1228-4635-83A4-BED72AEE9420@freebsd.org> References: To: Lexi Winter X-Mailer: Apple Mail (2.3774.500.171.1.1) 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: 4VWykP3CxPz4F7g On 4 May 2024, at 16:34, Lexi Winter wrote: > hi, >=20 > i've just submitted this PR: >=20 > https://github.com/freebsd/freebsd-src/pull/1216 >=20 > which contains this commit: >=20 > commit 57d273c90ee1c17446236aba25ed0bd291c4f126 (HEAD -> lf/main, = hemlock/lf/main) > Author: Lexi Winter > Date: Sat May 4 16:11:21 2024 +0100 >=20 > ifconfig(8): change default IP address format to 'cidr' >=20 > '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. >=20 > The previous format is still available using -finet:hex or = -finet6:numeric. >=20 > imp@ suggested i should ask arch@ and net@ about this, so here i am! >=20 > 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. Do we need to care about supporting (/ do we currently support) historical non-contiguous netmasks? At a glance the CIDR code doesn=E2=80=99= t handle that and will stop at the first 0, so changing to that by default would break such setups. Jess