ipfw: treat ipv6 address with zero mask as 'any'

Make the behaviour similar for both IPv4 and IPv6. Also add
the corresponding tests.

PR:             294733
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D56618
This commit is contained in:
Andrey V. Elsukov
2026-05-17 13:12:20 +03:00
parent 43a8585cb2
commit 2872268c7f
4 changed files with 37 additions and 7 deletions
@@ -682,6 +682,8 @@ def _print_obj_value(self):
AttrDescr(IpFwOpcode.O_NOP, InsnComment),
AttrDescr(IpFwOpcode.O_IP4, InsnEmpty),
AttrDescr(IpFwOpcode.O_IP6, InsnEmpty),
AttrDescr(IpFwOpcode.O_PROTO, InsnProto),
AttrDescr(IpFwOpcode.O_PROB, InsnProb),
AttrDescr(IpFwOpcode.O_IP_DST_ME, InsnEmpty),