Documentation ¶
Index ¶
- Constants
- Variables
- func DumpThreadTable()
- func HandleItrCryptoPort(port uint)
- func InitAndStartStatsThread(puntChannel chan []byte, ctx *dptypes.DataplaneContext)
- func InitThreadTable()
- func ManageETRThread(port int)
- func ManageEtrDNS(deviceNetworkStatus types.DeviceNetworkStatus)
- func ManageItrThreads(interfaces Interfaces)
- func Run()
- func StartMapcacheScrubThread()
- type DKey
- type DatabaseMap
- type DatabaseMappings
- type DecapKeys
- type EntireMapCache
- type EtrNatPort
- type Interface
- type Interfaces
- type ItrCryptoPort
- type Key
- type MapCacheEntry
- type Rloc
- type ThreadEntry
- type Type
Constants ¶
View Source
const ( MAPCACHETYPE = "map-cache" ENTIREMAPCACHE = "entire-map-cache" DATABASEMAPPINGSTYPE = "database-mappings" INTERFACESTYPE = "interfaces" DECAPKEYSTYPE = "decap-keys" ETRNATPORT = "etr-nat-port" ITRCRYPTOPORT = "itr-crypto-port" )
These message type definitions should be in sync with lispers.net
View Source
const CRYPTO_KEY_LEN = 32
Variables ¶
View Source
var Version = "No version specified"
Functions ¶
func DumpThreadTable ¶
func DumpThreadTable()
func HandleItrCryptoPort ¶
func HandleItrCryptoPort(port uint)
func InitAndStartStatsThread ¶
func InitAndStartStatsThread(puntChannel chan []byte, ctx *dptypes.DataplaneContext)
func InitThreadTable ¶
func InitThreadTable()
func ManageETRThread ¶
func ManageETRThread(port int)
func ManageEtrDNS ¶
func ManageEtrDNS(deviceNetworkStatus types.DeviceNetworkStatus)
Handle device network state changes
func ManageItrThreads ¶
func ManageItrThreads(interfaces Interfaces)
Find the difference between running ITR threads and the threads that need to be running according to new configuration.
Kill the ITR threads that are no longer needed and create newly required threads.
func StartMapcacheScrubThread ¶
func StartMapcacheScrubThread()
Types ¶
type DatabaseMap ¶
type DatabaseMappings ¶
type DatabaseMappings struct {
Mappings []DatabaseMap `json:"database-mappings"`
}
type EntireMapCache ¶
type EntireMapCache struct {
MapCaches []MapCacheEntry
}
type EtrNatPort ¶
type Interfaces ¶
type Interfaces struct {
Interfaces []Interface `json:"interfaces"`
}
type ItrCryptoPort ¶
type MapCacheEntry ¶
type ThreadEntry ¶
type ThreadEntry struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.