Documentation ¶
Overview ¶
Package trunks define the trunk runtime
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TrunksConfig ¶
type TrunksConfig struct { NIC NIC `yaml:"nic"` Bandwidth Bandwidth `yaml:"bandwidth"` Delay Delay `yaml:"delay"` ACMList []*ACM `yaml:"acm"` QoS bool Logs string KernelVersionCheck bool ACMEnabled bool ACMCounter int ACMIndex int CurrentACM *ACM }
TrunksConfig struct
func InitTrunks ¶
func InitTrunks(file string, qos bool, logs string, acm bool, disable_kernel_version_check bool) (*TrunksConfig, error)
InitTrunks initialize the trunks module
func ParseConf ¶
func ParseConf(file string) (*TrunksConfig, error)
ParseConf read the yaml file and populate the Config instancce
func (*TrunksConfig) CheckInterfaces ¶
func (t *TrunksConfig) CheckInterfaces() error
CheckInterfaces checks if the interfaces exist
func (*TrunksConfig) FindInterfaces ¶
func (t *TrunksConfig) FindInterfaces() error
func (*TrunksConfig) FlushTables ¶
func (t *TrunksConfig) FlushTables() error
func (*TrunksConfig) RunACM ¶
func (t *TrunksConfig) RunACM(qos bool)
RunACM simulate the used by the DVB-S2/RCS2 system
Click to show internal directories.
Click to hide internal directories.