package asnutil

Import Path
	github.com/libp2p/go-libp2p-asn-util (on go.dev)

Dependency Relation
	imports 6 packages, and imported by one package

Involved Source Files asn.go Package asnutil provides a mapping lookup for IPv6 ASNs.
Package-Level Functions (total 2)
AsnForIPv6 returns the AS number for the given IPv6 address. If no mapping exists for the given network, this function will return a zero ASN number.
AsnForIPv6Network returns the AS number for the given IPv6 network. If no mapping exists for the given network, this function will return a zero ASN number. network is the first 64 bits of the ip address interpreted as big endian.
Package-Level Variables (only one)
Deprecated: use [AsnForIPv6] or [AsnForIPv6Network], they do not allocate.