Date: Fri, 16 Sep 2011 19:29:12 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r225628 - stable/8/sbin/ipfw Message-ID: <201109161929.p8GJTC2i035552@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109161929.p8GJTC2i035552>