Don't force IPv6 proto to be printed numericaly.

Noticed by:	ceri
This commit is contained in:
brooks 2005-04-26 20:00:07 +00:00
parent 4d3f396bf6
commit 347035a2c9

View File

@ -1599,8 +1599,6 @@ show_ipfw(struct ip_fw *rule, int pcwidth, int bcwidth)
if (cmd->len & F_NOT)
printf(" not");
proto = cmd->arg1;
if (proto != 41) /* XXX: IPv6 is special */
pe = getprotobynumber(cmd->arg1);
if (flags & HAVE_OPTIONS)
printf(" proto");
if (pe)