onehop

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 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

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.SVC
	// 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

func (a Addr) Network() string

func (Addr) String

func (a Addr) String() string

type AddressRewriter

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

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