Replace () by [] in tcp-flags.
Fix proc-opts, the value is optional, noted by he@.
This commit is contained in:
parent
f15affeb4b
commit
f8cd5f425f
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: npf.conf.5,v 1.59 2018/08/16 09:58:00 maxv Exp $
|
.\" $NetBSD: npf.conf.5,v 1.60 2018/08/17 10:16:24 maxv Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 2009-2017 The NetBSD Foundation, Inc.
|
.\" Copyright (c) 2009-2017 The NetBSD Foundation, Inc.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd August 16, 2018
|
.Dd August 17, 2018
|
||||||
.Dt NPF.CONF 5
|
.Dt NPF.CONF 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -371,7 +371,7 @@ map-flags = "no-ports"
|
||||||
; and numbers, depending on the extension.
|
; and numbers, depending on the extension.
|
||||||
|
|
||||||
proc = "procedure" proc-name "{" *( proc-call [ new-line ] ) "}"
|
proc = "procedure" proc-name "{" *( proc-call [ new-line ] ) "}"
|
||||||
proc-opts = key " " val [ "," proc-opts ]
|
proc-opts = key [ " " val ] [ "," proc-opts ]
|
||||||
proc-call = call-name ":" proc-opts new-line
|
proc-call = call-name ":" proc-opts new-line
|
||||||
|
|
||||||
; Group definition and the rule list.
|
; Group definition and the rule list.
|
||||||
|
@ -391,7 +391,7 @@ dynamic-ruleset = "ruleset" group-opts
|
||||||
rule = static-rule | dynamic-ruleset
|
rule = static-rule | dynamic-ruleset
|
||||||
|
|
||||||
tcp-flag-mask = tcp-flags
|
tcp-flag-mask = tcp-flags
|
||||||
tcp-flags = ("S")("A")("F")("R")
|
tcp-flags = [ "S" ] [ "A" ] [ "F" ] [ "R" ]
|
||||||
proto = "proto" protocol [ proto-opts ]
|
proto = "proto" protocol [ proto-opts ]
|
||||||
block-opts = "return-rst" | "return-icmp" | "return"
|
block-opts = "return-rst" | "return-icmp" | "return"
|
||||||
family-opt = "inet4" | "inet6"
|
family-opt = "inet4" | "inet6"
|
||||||
|
|
Loading…
Reference in New Issue