router

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const BUFFER_SIZE = 1 << 17 // 128KB

const BUFFER_SIZE = 9216 // Jumbo Frame Size const BUFFER_SIZE = 1 << 16 // 65536

View Source
const MTU int = 65535 // TUN interface, so only plain IP packet, no ethernet header

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Init() error
	P2PHost() libp2pHost.Host
	// NetworkInterfaceName() string
	IPv4() string
	SetIPv4(ipv4 string)
	IPv6() string
	GlobalIPv6() string
	SetIPv6(ipv6 string)
	SetGlobalIPv6(ipv6 string)
	IP4AddrAdd(ipv4 string) error
	IP4AddrDel(ipv4 string) error
	IP6AddrAdd(ipv6 string) error
	IP6AddrDel(ipv6 string) error
	GetConnections() int32
	RIB() rib.Interface
	Disconnect()
}

func New

func New(externalIPv4, subnetID string, port int, localForwarding bool, rtImported, rtExported []string) Interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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