Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoASNFound = errors.New("no ASN found for address")
ErrNoASNFound is returned when search fails to identify a network for the given src IP.
Functions ¶
func ParseSystems ¶
ParseSystems converts the RouteView AS string to an annotator.System array. Invalid values are ignored.
RouteViews may contain: * a single AS number, e.g. "32", one System with one ASN * an AS set, e.g. "32,54", one System with multiple ASNs * a Multi-Origin AS (MOAS), e.g. "10_20", two Systems each with one or more ASNs.
Types ¶
type Index ¶
type Index []NetIndex
Index is searchable array of NetIndexes.
func ParseRouteView ¶
ParseRouteView reads the given csv file and generates a sorted IP list.
Click to show internal directories.
Click to hide internal directories.