[chain] Add ChainPolicy type and its possible values.

This commit is contained in:
Maxime Demode 2019-10-16 11:43:00 +02:00
parent 5d14089d2e
commit 912284322e
1 changed files with 9 additions and 0 deletions

View File

@ -73,6 +73,15 @@ const (
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
// https://wiki.nftables.org/wiki-nftables/index.php/Configuring_chains
type Chain struct {