Date: Sun, 18 Aug 2002 21:52:16 -0700 (PDT) From: Luigi Rizzo <luigi@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/ipfw ipfw.8 ipfw2.c Message-ID: <200208190452.g7J4qGiG080264@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
luigi 2002/08/18 21:52:16 PDT
Modified files:
sbin/ipfw ipfw.8 ipfw2.c
Log:
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.
Revision Changes Path
1.108 +90 -75 src/sbin/ipfw/ipfw.8
1.11 +285 -134 src/sbin/ipfw/ipfw2.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208190452.g7J4qGiG080264>
