opnsense-src/sbin/ipfw
Andrey V. Elsukov fd258b6dd1 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

(cherry picked from commit 706a03f61bbb6e0cf10e6c3727966495b30d763e)
2025-02-21 14:16:15 +03:00
..
tests ipfw: add state/comment tests 2023-06-16 07:24:19 +00:00
altq.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
dummynet.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ipfw.8 ipfw.8: Adjust section for loader tunables 2023-10-02 08:49:38 +08:00
ipfw2.c ipfw: make 'ipfw show' output compatible with 'ipfw add' command 2025-02-21 14:16:15 +03:00
ipfw2.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ipv6.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
main.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nat.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
nat64clat.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
nat64lsn.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
nat64stl.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
nptv6.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
tables.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00