asn v0.2.1 ASN.Parser

Summary

Functions

Parses an IP from a string, or takes a list of the bytes as integer values as string

Returns a map with AS-IDs associated to AS-Names

Returns a tuple with {as, asn}

Returns a map with bitstring-ip-masks associated to AS-IDs

Returns a tuple with {ip-prefix-bitstring, as}

Returns a bitstring or nil

Functions

ip_to_tuple(ip)

Parses an IP from a string, or takes a list of the bytes as integer values as string

parse_as_to_asn_file(text)

Returns a map with AS-IDs associated to AS-Names

parse_as_to_asn_line(line)

Returns a tuple with {as, asn}

parse_ip_to_as_file(text)

Returns a map with bitstring-ip-masks associated to AS-IDs

parse_ip_to_as_line(line)

Returns a tuple with {ip-prefix-bitstring, as}

trunc_ip(arg, mask)

Returns a bitstring or nil