overlay

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IPv4Name     = "IPv4"
	IPv6Name     = "IPv6"
	IPv46Name    = "IPv4+6"
	UDPIPv4Name  = "UDP/IPv4"
	UDPIPv6Name  = "UDP/IPv6"
	UDPIPv46Name = "UDP/IPv4+6"
)
View Source
const (
	// EndhostPort is the overlay port that the dispatcher binds to on non-routers. Subject to
	// change during standardisation.
	EndhostPort = 30041
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OverlayAddr added in v0.2.0

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

func NewOverlayAddr added in v0.2.0

func NewOverlayAddr(l3 addr.HostAddr, l4 addr.L4Info) (*OverlayAddr, error)

func (*OverlayAddr) Copy added in v0.2.0

func (a *OverlayAddr) Copy() *OverlayAddr

func (*OverlayAddr) Eq added in v0.2.0

func (a *OverlayAddr) Eq(o *OverlayAddr) bool

func (*OverlayAddr) L3 added in v0.2.0

func (a *OverlayAddr) L3() addr.HostAddr

func (*OverlayAddr) L4 added in v0.2.0

func (a *OverlayAddr) L4() addr.L4Info

func (*OverlayAddr) Network added in v0.2.0

func (a *OverlayAddr) Network() string

func (*OverlayAddr) String added in v0.2.0

func (a *OverlayAddr) String() string

func (*OverlayAddr) ToUDPAddr added in v0.2.0

func (a *OverlayAddr) ToUDPAddr() *net.UDPAddr

func (*OverlayAddr) Type added in v0.2.0

func (a *OverlayAddr) Type() Type

type Type

type Type int
const (
	Invalid Type = iota
	IPv4
	IPv6
	IPv46
	UDPIPv4
	UDPIPv6
	UDPIPv46
)

func OverlayFromIP

func OverlayFromIP(ip net.IP, ot Type) Type

func TypeFromString

func TypeFromString(s string) (Type, error)

func (Type) IsIPv4

func (ot Type) IsIPv4() bool

func (Type) IsIPv6

func (ot Type) IsIPv6() bool

func (Type) IsUDP

func (ot Type) IsUDP() bool

func (Type) MarshalJSON

func (ot Type) MarshalJSON() ([]byte, error)

func (Type) String

func (o Type) String() string

func (Type) To4

func (ot Type) To4() Type

func (Type) To6

func (ot Type) To6() Type

func (Type) ToIP

func (ot Type) ToIP() Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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