Match IP addresses to autonomous systems

ip_to_asn(cidr_trie, ip)

Arguments

cidr_trie
trie created with asn_table_to_trie()
ip
character vector or numeric vector of IPv4 addresses