rcmn

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

Documentation

Overview

Package rcmn contains small common types used by the border router, to eliminate circular dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dir

type Dir int

Dir represents a packet direction. It is used to designate where a packet came from, and where it is going to.

const (
	// DirUnset is the zero-value for Dir, and means the direction hasn't been initialized.
	DirUnset Dir = iota
	// DirSelf means the packet is going to/coming from this router.
	DirSelf
	// DirLocal means the packet is going to/coming from the local ISD-AS.
	DirLocal
	// DirExternal means the packet is going to/coming from another ISD-AS.
	DirExternal
)

func (Dir) String

func (d Dir) String() string

Jump to

Keyboard shortcuts

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