routing

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package routing provides implementations for routing table and routing algorithms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table interface {
	FindPort(dst sim.RemotePort) sim.RemotePort
	DefineRoute(finalDst, outputPort sim.RemotePort)
	DefineDefaultRoute(outputPort sim.RemotePort)
}

Table is a routing table that can find the next-hop port according to the final destination.

func NewTable

func NewTable() Table

NewTable creates a new Table.

Jump to

Keyboard shortcuts

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