Do not print "ip6" keyword in print_icmp6types() for O_ICMP6TYPE opcode.

It produces incompatibility when rules listing is used again to
restore saved ruleset, because "ip6" keyword produces separate opcode.
The kernel already has the check and only IPv6 packets will be checked
for matching.

PR:		232939
MFC after:	3 days
This commit is contained in:
Andrey V. Elsukov 2018-11-06 07:41:32 +00:00
parent 8002c3a495
commit 8f47ad010c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340175

View File

@ -169,7 +169,7 @@ print_icmp6types(struct buf_pr *bp, ipfw_insn_u32 *cmd)
int i, j;
char sep= ' ';
bprintf(bp, " ip6 icmp6types");
bprintf(bp, " icmp6types");
for (i = 0; i < 7; i++)
for (j=0; j < 32; ++j) {
if ( (cmd->d[i] & (1 << (j))) == 0)