Displaying 1 result from an estimated 1 matches for "ipfw_main".
Did you mean:
if_main
2003 Jul 19
0
[PATCH] ipfw2 fails with 'bad command' error
...ipe 1 config bw 500kbit/s
add pipe 1 all from any to any
Then execute:
# ipfw -p cat /etc/ipfw.rules
command is cat
Line 2: bad command `pipe'
Using any preprocessor that generates those rules will
give the same error.
>Fix:
Correctly initialise the 'do_pipe' variable in ipfw_main()
Index: sbin/ipfw/ipfw2.c
===================================================================
RCS file: /data/cvs/freebsd/src/sbin/ipfw/ipfw2.c,v
retrieving revision 1.4.2.16
diff -u -r1.4.2.16 ipfw2.c
--- sbin/ipfw/ipfw2.c 17 Jul 2003 06:03:39 -0000 1.4.2.16
+++ sbin/ipfw/ipfw2.c 20 Jul 2003 04:...