Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npfctl Add some content to the Procedures section.
details: https://anonhg.NetBSD.org/src/rev/b9893a30677b
branches: trunk
changeset: 781788:b9893a30677b
user: rmind <rmind%NetBSD.org@localhost>
date: Sun Sep 30 21:09:30 2012 +0000
description:
Add some content to the Procedures section.
diffstat:
usr.sbin/npf/npfctl/npf.conf.5 | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 611608301ce9 -r b9893a30677b usr.sbin/npf/npfctl/npf.conf.5
--- a/usr.sbin/npf/npfctl/npf.conf.5 Sun Sep 30 21:05:14 2012 +0000
+++ b/usr.sbin/npf/npfctl/npf.conf.5 Sun Sep 30 21:09:30 2012 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: npf.conf.5,v 1.21 2012/09/30 13:15:03 wiz Exp $
+.\" $NetBSD: npf.conf.5,v 1.22 2012/09/30 21:09:30 rmind Exp $
.\"
.\" Copyright (c) 2009-2012 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd September 29, 2012
+.Dd September 30, 2012
.Dt NPF.CONF 5
.Os
.Sh NAME
@@ -160,6 +160,21 @@
Explicit filter criteria can be specified using "pass <criteria>" as
an additional option of the mapping.
.Ss Procedures
+Rule procedure is defined as a collection of extension calls (it may have
+none).
+Every extension call has a name and a list of options in a form of
+key-value pairs.
+Depending on the call, key might represent the argument and the value
+might be optional.
+For example:
+.Bd -literal
+procedure "someproc" {
+ log: npflog0
+ normalise: "random-id", "min-ttl" 64
+}
+.Ed
+.Pp
+In this case, procedure has a call to logging and normalisation modules.
.Ss Misc
Text after a hash (#) character is considered a comment.
The \\ character at the end of a line marks a continuation line,
Home |
Main Index |
Thread Index |
Old Index