Don't print extra " via ", if we have already printed one. While here,

slightly style brackets.

PR:		misc/75297
MFC after:	1 week
This commit is contained in:
Gleb Smirnoff 2005-01-18 15:13:20 +00:00
parent a2cc61fa6e
commit bd528823ec
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140423

View File

@ -1383,7 +1383,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;
@ -1396,10 +1397,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 );