diff options
| author | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-01-25 07:23:34 +0000 |
|---|---|---|
| committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2005-01-25 07:23:34 +0000 |
| commit | 99d58d531c8cb45ca6a7416c170102cfff5b7ffb (patch) | |
| tree | c2e29b89958f40bc67baa5228562e35d37ed8a6a /sbin | |
| parent | 70dd2dbee8f3bce2a686139805ec5674679f37b4 (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/ipfw/ipfw2.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sbin/ipfw/ipfw2.c b/sbin/ipfw/ipfw2.c index d97285d89be6d..67c01ad823029 100644 --- a/sbin/ipfw/ipfw2.c +++ b/sbin/ipfw/ipfw2.c @@ -1179,7 +1179,8 @@ show_ipfw(struct ip_fw *rule, int pcwidth, int bcwidth) break; case O_XMIT: case O_RECV: - case O_VIA: { + case O_VIA: + { char const *s; ipfw_insn_if *cmdif = (ipfw_insn_if *)cmd; @@ -1192,10 +1193,11 @@ show_ipfw(struct ip_fw *rule, int pcwidth, int bcwidth) if (cmdif->name[0] == '\0') printf(" %s %s", s, inet_ntoa(cmdif->p.ip)); - printf(" %s %s", s, cmdif->name); - } - break; + else + printf(" %s %s", s, cmdif->name); + break; + } case O_IPID: if (F_LEN(cmd) == 1) printf(" ipid %u", cmd->arg1 ); |
