svn commit: r187048 - stable/7/sbin/ipfw
Maxim Konovalov
maxim at FreeBSD.org
Sun Jan 11 02:50:14 PST 2009
Author: maxim
Date: Sun Jan 11 10:50:13 2009
New Revision: 187048
URL: http://svn.freebsd.org/changeset/base/187048
Log:
Manually merge r183889:183890: do nothing in show_nat() for a test mode (-n).
Modified:
stable/7/sbin/ipfw/ipfw2.c
Modified: stable/7/sbin/ipfw/ipfw2.c
==============================================================================
--- stable/7/sbin/ipfw/ipfw2.c Sun Jan 11 08:40:26 2009 (r187047)
+++ stable/7/sbin/ipfw/ipfw2.c Sun Jan 11 10:50:13 2009 (r187048)
@@ -5983,6 +5983,9 @@ show_nat(int ac, char **av) {
lrule = IPFW_DEFAULT_RULE; /* max ipfw rule number */
ac--; av++;
+ if (test_only)
+ return;
+
/* Parse parameters. */
for (cmd = IP_FW_NAT_GET_LOG, do_cfg = 0; ac != 0; ac--, av++) {
if (!strncmp(av[0], "config", strlen(av[0]))) {
More information about the svn-src-stable
mailing list