Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- func (c *Config) AdvertisementDataPrefix() enc.Name
- func (c *Config) AdvertisementSyncActivePrefix() enc.Name
- func (c *Config) AdvertisementSyncInterval() time.Duration
- func (c *Config) AdvertisementSyncPassivePrefix() enc.Name
- func (c *Config) AdvertisementSyncPrefix() enc.Name
- func (c *Config) LocalPrefix() enc.Name
- func (c *Config) NetworkName() enc.Name
- func (c *Config) Parse() (err error)
- func (c *Config) PrefixTableDataPrefix() enc.Name
- func (c *Config) PrefixTableSyncPrefix() enc.Name
- func (c *Config) ReadvertisePrefix() enc.Name
- func (c *Config) RouterDeadInterval() time.Duration
- func (c *Config) RouterName() enc.Name
- func (c *Config) StatusPrefix() enc.Name
Constants ¶
View Source
const CostInfinity = uint64(16)
View Source
const MulticastStrategy = "/localhost/nfd/strategy/multicast"
View Source
const NlsrOrigin = uint64(128)
Variables ¶
View Source
var Localhop = enc.Name{enc.NewStringComponent(enc.TypeGenericNameComponent, "localhop")}
View Source
var Localhost = enc.Name{enc.NewStringComponent(enc.TypeGenericNameComponent, "localhost")}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Network should be the same for all routers in the network.
Network string `json:"network"`
// Router should be unique for each router in the network.
Router string `json:"router"`
// Period of sending Advertisement Sync Interests.
AdvertisementSyncInterval_ms uint64 `json:"advertise_interval"`
// Time after which a neighbor is considered dead.
RouterDeadInterval_ms uint64 `json:"router_dead_interval"`
// contains filtered or unexported fields
}
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) AdvertisementDataPrefix ¶
func (*Config) AdvertisementSyncActivePrefix ¶
func (*Config) AdvertisementSyncInterval ¶
func (*Config) AdvertisementSyncPassivePrefix ¶
func (*Config) AdvertisementSyncPrefix ¶
func (*Config) LocalPrefix ¶ added in v1.4.2
func (*Config) NetworkName ¶
func (*Config) PrefixTableDataPrefix ¶
func (*Config) PrefixTableSyncPrefix ¶
func (*Config) ReadvertisePrefix ¶
func (*Config) RouterDeadInterval ¶
func (*Config) RouterName ¶
func (*Config) StatusPrefix ¶ added in v1.4.2
Click to show internal directories.
Click to hide internal directories.