[chain] Add ChainPolicy type and its possible values.
This commit is contained in:
parent
5d14089d2e
commit
912284322e
9
chain.go
9
chain.go
|
@ -73,6 +73,15 @@ const (
|
||||||
ChainTypeNAT ChainType = "nat"
|
ChainTypeNAT ChainType = "nat"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// ChainPolicy defines what this chain default policy will be.
|
||||||
|
type ChainPolicy uint32
|
||||||
|
|
||||||
|
// Possible ChainPolicy values.
|
||||||
|
const (
|
||||||
|
ChainPolicyDrop ChainPolicy = iota
|
||||||
|
ChainPolicyAccept
|
||||||
|
)
|
||||||
|
|
||||||
// A Chain contains Rules. See also
|
// A Chain contains Rules. See also
|
||||||
// https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains
|
// https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains
|
||||||
type Chain struct {
|
type Chain struct {
|
||||||
|
|
Loading…
Reference in New Issue