config

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const CostInfinity = uint64(16)
View Source
const MulticastStrategy = "/localhost/nfd/strategy/multicast"
View Source
const NlsrOrigin = uint64(128)

Variables

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 (c *Config) AdvertisementDataPrefix() enc.Name

func (*Config) AdvertisementSyncActivePrefix

func (c *Config) AdvertisementSyncActivePrefix() enc.Name

func (*Config) AdvertisementSyncInterval

func (c *Config) AdvertisementSyncInterval() time.Duration

func (*Config) AdvertisementSyncPassivePrefix

func (c *Config) AdvertisementSyncPassivePrefix() enc.Name

func (*Config) AdvertisementSyncPrefix

func (c *Config) AdvertisementSyncPrefix() enc.Name

func (*Config) LocalPrefix added in v1.4.2

func (c *Config) LocalPrefix() enc.Name

func (*Config) NetworkName

func (c *Config) NetworkName() enc.Name

func (*Config) Parse

func (c *Config) Parse() (err error)

func (*Config) PrefixTableDataPrefix

func (c *Config) PrefixTableDataPrefix() enc.Name

func (*Config) PrefixTableSyncPrefix

func (c *Config) PrefixTableSyncPrefix() enc.Name

func (*Config) ReadvertisePrefix

func (c *Config) ReadvertisePrefix() enc.Name

func (*Config) RouterDeadInterval

func (c *Config) RouterDeadInterval() time.Duration

func (*Config) RouterName

func (c *Config) RouterName() enc.Name

func (*Config) StatusPrefix added in v1.4.2

func (c *Config) StatusPrefix() enc.Name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL