onehop

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr added in v0.7.0

type Addr struct {
	// IA is the ISD-AS identifier of the remote AS.
	IA addr.IA
	// Egress is the interface over which the remote AS should be reached.
	Egress uint16
	// SVC is the service anycast address of the designated service in the remote AS.
	SVC addr.HostSVC
	// NextHop is the router that owns the egress interface.
	NextHop *net.UDPAddr
}

Addr represents a service address in a remote ISD-AS reachable via a SCION onehop path.

func (Addr) Network added in v0.7.0

func (a Addr) Network() string

func (Addr) String added in v0.7.0

func (a Addr) String() string

type AddressRewriter added in v0.7.0

type AddressRewriter struct {
	// Rewriter is used to perform the SVC resolution.
	Rewriter *infraenv.AddressRewriter
	// MAC is the mac to issue hop fields.
	MAC hash.Hash
	// contains filtered or unexported fields
}

AddressRewriter is used to perform SVC resolution over a onehop path.

func (*AddressRewriter) RedirectToQUIC added in v0.7.0

func (r *AddressRewriter) RedirectToQUIC(
	ctx context.Context,
	address net.Addr,
) (net.Addr, bool, error)

Jump to

Keyboard shortcuts

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