spath

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MaxExpirationTime is the maximum absolute expiration time of SCION hop
	// fields.
	MaxExpirationTime = time.Unix(maxTimestamp, 0).Add(path.ExpTimeToDuration(math.MaxUint8))
)

Functions

This section is empty.

Types

type Path

type Path struct {
	Raw  []byte
	Type path.Type
}

Path is the raw dataplane path.

func NewOneHop added in v0.4.0

func NewOneHop(isd addr.ISD, ifID uint16, ts time.Time, exp uint8, hfmac hash.Hash) (Path, error)

func (Path) Copy

func (p Path) Copy() Path

func (Path) IsEmpty added in v0.3.0

func (p Path) IsEmpty() bool

func (*Path) IsOHP added in v0.6.0

func (path *Path) IsOHP() bool

func (*Path) Reverse

func (p *Path) Reverse() error

func (*Path) String added in v0.6.0

func (path *Path) String() string

Jump to

Keyboard shortcuts

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