Pfx.unique_local-question-mark
You're seeing just the function
unique_local-question-mark, go back to Pfx module for more information.
Specs
Returns true if pfx is designated as "private-use".
This includes the rfc1918 prefixes:
10.0.0.0/8,172.16.0.0/12, and192.168.0.0/16.
And the rfc4193 prefix
fc00::/7.
Examples
iex> unique_local?("172.31.255.255")
true
iex> unique_local?("10.10.10.10")
true
iex> unique_local?("fc00:acdc::")
true
iex> unique_local?("172.32.0.0")
false
iex> unique_local?("10.255.255.255")
true
iex> unique_local?({{172, 31, 255, 255}, 32})
true
iex> unique_local?({172, 31, 255, 255})
true
iex> unique_local?(%Pfx{bits: <<172, 31, 255, 255>>, maxlen: 32})
true
# bad prefix
iex> unique_local?("10.255.255.256")
false