From owner-freebsd-bugs@freebsd.org Sun Feb 21 06:21:28 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CD9A7AB0C7C for ; Sun, 21 Feb 2016 06:21:28 +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 mx1.freebsd.org (Postfix) with ESMTPS id B8A7B150C for ; Sun, 21 Feb 2016 06:21:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u1L6LS3k023611 for ; Sun, 21 Feb 2016 06:21:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207388] unfamiliar behavior of "setdscp" in IPFW Date: Sun, 21 Feb 2016 06:21:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 9.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: nazari.s11@gmail.com 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 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.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2016 06:21:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207388 Bug ID: 207388 Summary: unfamiliar behavior of "setdscp" in IPFW Product: Base System Version: 9.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: nazari.s11@gmail.com Hi I use FreeBSD 9.2 and ipfw IPFW rules are defined as follows. 02000 check-state 02900 skipto 3003 ip from any to any via gbeth1 out 03003 skipto 3005 ip from any to any dscp af11 03004 skipto 3007 ip from any to any 03005 setdscp af12 altq af11-gbeth1-out ip from any to any via gbeth1 out 03006 skipto 3010 ip from any to any 03007 skipto 3009 ip from any to any dscp af12 03008 skipto 3010 ip from any to any 03009 setdscp cs7 altq af12-gbeth1-out ip from any to any via gbeth1 out 65535 allow ip from any to any And packets with dscp af11 and af12 be sent to the gbeth1 interface. Af11 packets match with Rule 3003 then change dscp value of then to af12 in rule 3005 . But this packets re-match with rule 3007 and changes dscp value again in = 3009 to cs7. Thus, at the bottom of all outgoing packets from this interface are dscp cs= 7. --=20 You are receiving this mail because: You are the assignee for the bug.=