sigcmn

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCtrlPort  = 10081
	DefaultEncapPort = 10080
	MaxPort          = (1 << 16) - 1
	SIGHdrSize       = 8
)

Variables

View Source
var (
	CtrlPort  = flag.Int("ctrlport", DefaultCtrlPort, "control data port (e.g., keepalives)")
	EncapPort = flag.Int("encapport", DefaultEncapPort, "encapsulation data port")

	SigTun = flag.String("tun", "sig", "Name of TUN device to create")
)
View Source
var (
	DefV4Net = &net.IPNet{IP: net.IPv4zero, Mask: net.CIDRMask(0, net.IPv4len*8)}
	DefV6Net = &net.IPNet{IP: net.IPv6zero, Mask: net.CIDRMask(0, net.IPv6len*8)}
)
View Source
var (
	IA       addr.IA
	Host     addr.HostAddr
	PathMgr  *pathmgr.PR
	CtrlConn *snet.Conn
	MgmtAddr *mgmt.Addr
)

Functions

func CtrlSnetAddr

func CtrlSnetAddr() *snet.Addr

func EncapSnetAddr

func EncapSnetAddr() *snet.Addr

func Init

func Init(ia addr.IA, ip net.IP) error

func ValidatePort

func ValidatePort(desc string, port int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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