From owner-freebsd-bugs@freebsd.org Fri Feb 16 06:55:47 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E7C6F1AE1B for ; Fri, 16 Feb 2018 06:55:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E6F086905D for ; Fri, 16 Feb 2018 06:55:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 4E19C17F2 for ; Fri, 16 Feb 2018 06:55:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w1G6tkYb078719 for ; Fri, 16 Feb 2018 06:55:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w1G6tkKV078718 for freebsd-bugs@FreeBSD.org; Fri, 16 Feb 2018 06:55:46 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: freebsd-bugs@FreeBSD.org Subject: [Bug 225944] ipfw table destruction exit code and -q option Date: Fri, 16 Feb 2018 06:55:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: feature X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: vladimir-csp@yandex.ru X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2018 06:55:47 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225944 Bug ID: 225944 Summary: ipfw table destruction exit code and -q option Product: Base System Version: 11.1-STABLE Hardware: Any OS: Any Status: New Keywords: feature Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: vladimir-csp@yandex.ru This command: ipfw table sometable destroy always returns 0 even if 'sometable' does not exist. This command: ipfw table sometable create type addr behaves correctly (0 on creation, 71 if table already exits) Since autocreating table when adding address is now deprecated, it would be logical if -q option would also be supported for create/destroy commands. Currently a ruleset like this would work on boot, but fail on ipfw restart: -qf flush table 10 create type addr -q table 10 add 172.17.2.1/32 add 00010 allow tcp from table(10) to me Supporting -q option on create/destroy would make this construction workabl= e: -qf flush -q table 10 create type addr -q table 10 add 172.17.2.1/32 add allow tcp from table(10) to me Another inconsistency is produced when checking the above ruleset (first variant without -q for create): # ipfw -n ipfw.rules Flushed all rules. Line 3: DEPRECATED: inserting data into non-existing table 10. (auto-created) 00010 allow tcp from table(10) to me 'ipfw -n' ignores table create line, ignores existence of table 10, makes it impossible to tell whether the ruleset would work or not. --=20 You are receiving this mail because: You are the assignee for the bug.=