Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCtrlPort = 30256 DefaultEncapPort = 30056 DefaultTunName = "sig" DefaultTunRTableId = 11 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Features env.Features Logging env.Logging Metrics env.Metrics Sciond env.SciondClient `toml:"sd_client"` Sig SigConf }
func (*Config) ConfigName ¶
func (*Config) InitDefaults ¶
func (cfg *Config) InitDefaults()
type SigConf ¶
type SigConf struct { // ID of the SIG (required) ID string // The SIG config json file. (required) SIGConfig string // IA the local IA (required) IA addr.IA // IP the bind IP address (required) IP net.IP // Control data port, e.g. keepalives. (default DefaultCtrlPort) CtrlPort uint16 // Encapsulation data port. (default DefaultEncapPort) EncapPort uint16 // SCION dispatcher path. (default "") Dispatcher string // Name of TUN device to create. (default DefaultTunName) Tun string // TunRTableId the id of the routing table used in the SIG. (default DefaultTunRTableId) TunRTableId int // IPv4 source address hint to put into routing table. SrcIP4 net.IP // IPv6 source address hint to put into routing table. SrcIP6 net.IP }
SigConf contains the configuration specific to the SIG.
func (*SigConf) ConfigName ¶
func (*SigConf) InitDefaults ¶
func (cfg *SigConf) InitDefaults()
InitDefaults sets the default values to unset values.
Click to show internal directories.
Click to hide internal directories.