From nobody Thu Jan 05 16:27:21 2023 X-Original-To: ipfw@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 4NnsLy1Cs6z2lHRD for ; Thu, 5 Jan 2023 16:27:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NnsLx4tl9z47GB for ; Thu, 5 Jan 2023 16:27:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672936041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hzhIZqszlHTVwyjmQAE8isv6X9lafGX4nDg7aafgvek=; b=NCx1s9HvP5vvSxvzv+kx4SFd0S8BIP/JWV28ebY+rto5oO43ffwr0nPF/7Irh5FtfMxHtl xtCQAm6SsYVwFE9lFrGfBH1pL97LvZ2Jlzx+0Yl8Z2mGUxggTtOj9NJEneKcc6MvVDMJLF 4DPqA55GUHXSZHYClGSuRtkFoRAyRS9uwlcvY1hytnmb482PjziERIJJTdcSvVRx46QIO3 xZM/wjaETBGAzfyWPEIONeTTwxGrnwChR0xuL4OM9JTQcezZAmHuLMJORnokrsnPNNTzjJ Vi+e0W8Itm6r1k2S00qmeieg8FsXdEOkEG3XdJ9lVB0f1HAhdREFnpTV5HoSWQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672936041; a=rsa-sha256; cv=none; b=Vf9Y9AuXx1VKCyJ85Vvn5uzCNnj5kA4Tc6zr+nLmqtooeUyxrz0DETJGw9PlaSxtvG1NKg vETgebmoSR09fiSuyOtznzlNgxAgQhuKnGvnwKldNzSjluSmKfBTOfaBDdfaAgXQKZpSs7 D/jab+KY5OFYl33iz3O3k9fsOEN2LqOEodQvFWbb2D92edDypbzzvr39sRW4ZmJVRcbM8F KnLceDn4w917C7VSSFzOfaEmhMoEVjPxJEVlRCLVIBPKvexOD0dmD1a9ONqFir6THtQo2T navDNg8ktPE0JRMqsH41RbezK1tG2GI6Pn1yP74Gtk9tjMJUV04agiGdTJKEVg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NnsLx3y82zx5H for ; Thu, 5 Jan 2023 16:27:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 305GRL6g031473 for ; Thu, 5 Jan 2023 16:27:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 305GRLQ5031471 for ipfw@FreeBSD.org; Thu, 5 Jan 2023 16:27:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ipfw@FreeBSD.org Subject: [Bug 187904] [ipfw] ipfw(8) does not properly recognize the network in shorthand [regression] Date: Thu, 05 Jan 2023 16:27:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 12.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: zarychtam@plan-b.pwste.edu.pl X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: ipfw@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D187904 --- Comment #9 from Marek Zarychta --- (In reply to Vladislav V. Prodan from comment #8) I pointed to bug 258874 only as an explanation. It's not any real bug. Neit= her is this one IMHO. Classful network notation is deprecated, or at least no m= ore correct. RFC 791 where it was introduced doesn't officially support shorten= ed notation scheme. Relying on this scheme in 2023 and demanding support for an unofficial shortened classful notation for the legacy IP protocol is no more feasible. I have run some tests on 13.1-STABLE for both IP protocols and everything s= eems to work fine, at least fully consistent with inet (3) man page: # ipfw table 100 add 0.0.0.0/4 added: 0.0.0.0/4 0 # ipfw table 100 add 0.0.0.0/8 added: 0.0.0.0/8 0 # ipfw table 100 add 127.0.0.0/8 added: 127.0.0.0/8 0 # ipfw table 100 add 18 added: 0.0.0.18/32 0 # ipfw table 100 add 18.12 added: 18.0.0.12/32 0 # ipfw table 100 add 18.34.4 added: 18.34.0.4/32 0 # ipfw table 100 add ::1 added: ::1/128 0 # ipfw table 100 add 2001:db8::/32 added: 2001:db8::/32 0 # ipfw table 100 add 2000::/3 added: 2000::/3 0 # ipfw table 100 add 64:ff9b::8.8.8.8 added: 64:ff9b::808:808/128 0 Anyway, it still could be considered a POLA or ABI violation for 12-STABLE = if it worked before. --=20 You are receiving this mail because: You are the assignee for the bug.=