dvc

package
v0.0.0-...-d1ba03b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmds

func Cmds() []*cobra.Command

Constructs and returns a slice of Cobra commands for managing a router's status and neighbor links, including creating, destroying, and querying link status.

Types

type Tool

type Tool struct {
	// contains filtered or unexported fields
}

func (*Tool) DvStatus

func (t *Tool) DvStatus() (*spec_dv.Status, error)

Sends an Interest to the localhost NLSR status endpoint, retrieves the corresponding Data packet, and parses it into a DV Status object.

func (*Tool) RunDvLinkCreate

func (t *Tool) RunDvLinkCreate(cmd *cobra.Command, args []string)

Registers a permanent route in the NDN router's RIB with a protocol-specific prefix (`/localhop/<network>/DV/ADS/ACT`) for distance-vector routing, using the specified face.

func (*Tool) RunDvLinkDestroy

func (t *Tool) RunDvLinkDestroy(cmd *cobra.Command, args []string)

Destroys an NDN face specified by the given face ID or URI using the nfdc tool.

func (*Tool) RunDvStatus

func (t *Tool) RunDvStatus(_ *cobra.Command, args []string)

Retrieves and prints the current Distance Vector (DV) routing protocol status, including router version, network names, and routing table statistics.

func (*Tool) Start

func (t *Tool) Start()

Initializes and starts the NDN engine with a default face, terminating the tool if the engine fails to start.

func (*Tool) Stop

func (t *Tool) Stop()

Stops the tool's engine.

Jump to

Keyboard shortcuts

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