Files
go-nftables-client/family_type.go

31 lines
351 B
Go

package nft
import "fmt"
type FamilyType int8
const (
IP FamilyType = iota + 1
IP6
INET
ARP
BRIDGE
)
func (f FamilyType) String() string {
switch f {
case IP:
return "ip"
case IP6:
return "ip6"
case INET:
return "inet"
case ARP:
return "arp"
case BRIDGE:
return "bridge"
default:
return fmt.Sprintf("Encoding(%d)", f)
}
}