From 912284322e364d6e9e0f5928f084d98a3de7ae50 Mon Sep 17 00:00:00 2001 From: Maxime Demode Date: Wed, 16 Oct 2019 11:43:00 +0200 Subject: [PATCH] [chain] Add ChainPolicy type and its possible values. --- chain.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/chain.go b/chain.go index b2731aa..8b97bb1 100644 --- a/chain.go +++ b/chain.go @@ -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 {