HomeFreeBSD

MFC r340100:

Description

MFC r340100:

Do not use bzero() for the O_ICMP6TYPE opcode.

The buffer is already zeroed in compile_rule() function, and also it
may contain configured F_NOT flag in o.len field. This fixes the
filling for "not icmp6types" opcode.

MFC r340175:

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
Approved by: re (kib)

Details

Provenance
aeAuthored on
Parents
rS340276: Reset persistent mbstates when rune locale encoding changes.
Branches
Unknown
Tags
Unknown