mix iana.specials (Pfx v0.14.1) View Source

Download IANA IPv4/6 Special-Purpose Address Registries and store locally.

Usage:

mix iana.specials

The xml registry files are:

  • parsed into a list [{Pfx.t, %{property: value}] per registry
  • each list is sorted more to less specific
  • the lists are then stored in a map %{ip4: [..], ip6: [..]}
  • that map is then saved as priv/specials in erlang external term format

Pfx uses priv/specials as an external resource for a module attribute that allows looking up IANA attributes for a given prefix via Pfx.iana_special/2.