egress

package
v0.0.0-...-c8fc2fc Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PktLenSize = 2
	MinSpace   = 16
	SigHdrLen  = 8
	MaxSeq     = (1 << 24) - 1
)

Variables

This section is empty.

Functions

func Init

func Init()

func NewDispatcher

func NewDispatcher(devName string, devIO io.ReadWriteCloser, sess *Session) *egressDispatcher

func NewWorker

func NewWorker(sess *Session, logger log.Logger) *worker

Types

type RemoteInfo

type RemoteInfo struct {
	Sig *siginfo.Sig
	// contains filtered or unexported fields
}

func (*RemoteInfo) String

func (r *RemoteInfo) String() string

type Session

type Session struct {
	log.Logger
	IA     *addr.ISD_AS
	SessId mgmt.SessionType
	// contains filtered or unexported fields
}

Session contains a pool of paths to the remote AS, metrics about those paths, as well as maintaining the currently favoured path and remote SIG to use.

func NewSession

func NewSession(dstIA *addr.ISD_AS, sessId mgmt.SessionType,
	sigMap *siginfo.SigMap, logger log.Logger) (*Session, error)

func (*Session) Cleanup

func (s *Session) Cleanup() error

func (*Session) Healthy

func (s *Session) Healthy() bool

func (*Session) Remote

func (s *Session) Remote() *RemoteInfo

func (*Session) Start

func (s *Session) Start()

Jump to

Keyboard shortcuts

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