ov

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	STATE_UNKNOWN = iota
	STATE_INVALID
	STATE_VALID
)

Variables

View Source
var (
	StateToName = map[int]string{
		STATE_UNKNOWN: "NotFound",
		STATE_INVALID: "Invalid",
		STATE_VALID:   "Valid",
	}
)

Functions

This section is empty.

Types

type AbstractROA

type AbstractROA interface {
	GetASN() uint32
	GetMaxLen() int
	GetPrefix() *net.IPNet
}

type AbstractRoute

type AbstractRoute interface {
	GetPrefix() *net.IPNet
	GetASN() uint32
}

type OriginValidator

type OriginValidator struct {
	// contains filtered or unexported fields
}

func NewOV

func NewOV(vrp []AbstractROA) *OriginValidator

vrp: Validated ROA Payload https://tools.ietf.org/html/rfc6811

func (*OriginValidator) Validate

func (ov *OriginValidator) Validate(route AbstractRoute) ([]AbstractROA, int, error)

Jump to

Keyboard shortcuts

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