svn commit: r332448 - head/sbin/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Thu Apr 12 19:34:35 UTC 2018


Author: ae
Date: Thu Apr 12 19:34:35 2018
New Revision: 332448
URL: https://svnweb.freebsd.org/changeset/base/332448

Log:
  Remove printing of "not" keyword from print_ip() function.
  
  After r331668 handling of F_NOT flag done in one place by
  print_instruction() function.
  
  MFC after:	1 week

Modified:
  head/sbin/ipfw/ipfw2.c

Modified: head/sbin/ipfw/ipfw2.c
==============================================================================
--- head/sbin/ipfw/ipfw2.c	Thu Apr 12 19:06:15 2018	(r332447)
+++ head/sbin/ipfw/ipfw2.c	Thu Apr 12 19:34:35 2018	(r332448)
@@ -1192,11 +1192,10 @@ print_ip(struct buf_pr *bp, const struct format_opts *
 		if (d < sizeof(lookup_key)/sizeof(lookup_key[0]))
 			arg = match_value(rule_options, lookup_key[d]);
 		t = table_search_ctlv(fo->tstate, ((ipfw_insn *)cmd)->arg1);
-		bprintf(bp, "%s lookup %s %s", cmd->o.len & F_NOT ? " not": "",
-			arg, t);
+		bprintf(bp, " lookup %s %s", arg, t);
 		return;
 	}
-	bprintf(bp, "%s%s ", cmd->o.len & F_NOT ? " not": "", s);
+	bprintf(bp, "%s ", s);
 
 	if (cmd->o.opcode == O_IP_SRC_ME || cmd->o.opcode == O_IP_DST_ME) {
 		bprintf(bp, "me");


More information about the svn-src-head mailing list