HomeFreeBSD

ipfw: make 'ipfw show' output compatible with 'ipfw add' command

Description

ipfw: make 'ipfw show' output compatible with 'ipfw add' command

If rule was added in compact form and rule body is empty, print
'proto ip' opcode to be compatible with ipfw(8) syntax parser.

Before:
$ ipfw add allow proto ip
000700 allow
After:
$ ipfw add allow proto ip
000700 allow proto ip

MFC after: 1 week

Details

Provenance
aeAuthored on Tue, Feb 11, 9:48 AM
Parents
rG03704b89e785: linuxkpi: cc_platform: Add CC_ATTR_GUEST_MEM_ENCRYPT
Branches
Unknown
Tags
Unknown