freebsd-nq/sbin/ipfw
Luigi Rizzo e706181ba6 Major cleanup of the parser and printing routines in an attempt to
render the syntax less ambiguous.

Now rules can be in one of these two forms

	<action> <protocol> from <src> to <dst> [options]
	<action> MAC dst-mac src-mac mac-type [options]

however you can now specify MAC and IP header fields as options e.g.

	ipfw add allow all from any to any mac-type arp
	ipfw add allow all from any to any { dst-ip me or src-ip me }

which makes complex expressions a lot easier to write and parse.
The "all from any to any" part is there just for backward compatibility.

Manpage updated accordingly.
2002-08-19 04:52:15 +00:00
..
ipfw2.c Major cleanup of the parser and printing routines in an attempt to 2002-08-19 04:52:15 +00:00
ipfw.8 Major cleanup of the parser and printing routines in an attempt to 2002-08-19 04:52:15 +00:00
ipfw.c Handle symbolic names for common ethernet types (ip, arp etc.) 2002-05-13 10:19:59 +00:00
Makefile Uncommented WARNS=0. ipfw2.c is full of printf format errors that are 2002-07-11 17:33:37 +00:00