From owner-svn-src-all@FreeBSD.ORG Fri Sep 16 19:29:12 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 493D1106566B; Fri, 16 Sep 2011 19:29:12 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 384648FC14; Fri, 16 Sep 2011 19:29:12 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p8GJTCk8035554; Fri, 16 Sep 2011 19:29:12 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p8GJTC2i035552; Fri, 16 Sep 2011 19:29:12 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201109161929.p8GJTC2i035552@svn.freebsd.org> From: John Baldwin Date: Fri, 16 Sep 2011 19:29:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r225628 - stable/8/sbin/ipfw X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2011 19:29:12 -0000 Author: jhb Date: Fri Sep 16 19:29:11 2011 New Revision: 225628 URL: http://svn.freebsd.org/changeset/base/225628 Log: MFC 224942: Fix a regression where a rule containing a source port option after a destination IP would incorrectly display the source port as a destination port. Modified: stable/8/sbin/ipfw/ipfw2.c Directory Properties: stable/8/sbin/ipfw/ (props changed) Modified: stable/8/sbin/ipfw/ipfw2.c ============================================================================== --- stable/8/sbin/ipfw/ipfw2.c Fri Sep 16 18:41:19 2011 (r225627) +++ stable/8/sbin/ipfw/ipfw2.c Fri Sep 16 19:29:11 2011 (r225628) @@ -1263,6 +1263,8 @@ show_ipfw(struct ip_fw *rule, int pcwidt HAVE_PROTO | HAVE_SRCIP | HAVE_DSTIP | HAVE_IP, 0); case O_IP_SRCPORT: + if (flags & HAVE_DSTIP) + flags |= HAVE_IP; show_prerequisites(&flags, HAVE_PROTO | HAVE_SRCIP, 0); if ((cmd->len & F_OR) && !or_block)