diff options
| author | Maxim Konovalov <maxim@FreeBSD.org> | 2007-09-23 16:29:22 +0000 |
|---|---|---|
| committer | Maxim Konovalov <maxim@FreeBSD.org> | 2007-09-23 16:29:22 +0000 |
| commit | 087aa087d5fcdd29b2a38b86566b491b717ad516 (patch) | |
| tree | 701805796f2dee101db1d1c5d7b49723563678b9 | |
| parent | 673e07d5e7c7465c084603850df6892073329fb9 (diff) | |
Notes
| -rw-r--r-- | sbin/ipfw/ipfw2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index a83cea06481f..f3ce06f5c8cd 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -668,8 +668,6 @@ print_newports(ipfw_insn_u16 *cmd, int proto, int opcode) int i; char const *sep; - if (cmd->o.len & F_NOT) - printf(" not"); if (opcode != 0) { sep = match_value(_port_name, opcode); if (sep == NULL) @@ -1755,6 +1753,8 @@ show_ipfw(struct ip_fw *rule, int pcwidth, int bcwidth) show_prerequisites(&flags, HAVE_PROTO|HAVE_SRCIP, 0); if ((cmd->len & F_OR) && !or_block) printf(" {"); + if (cmd->len & F_NOT) + printf(" not"); print_newports((ipfw_insn_u16 *)cmd, proto, (flags & HAVE_OPTIONS) ? cmd->opcode : 0); break; |
