Pfx.nat64-question-mark
You're seeing just the function
nat64-question-mark
, go back to Pfx module for more information.
Specs
Returns true if pfx
is matched by the Well-Known Prefixes defined in
rfc6053 and
rfc8215, false otherwise.
Note that organisation specific prefixes might still be used for nat64.
Examples
iex> nat64?("64:ff9b::10.10.10.10")
true
iex> nat64?("64:ff9b:1::10.10.10.10")
true
iex> nat64?({{0x64, 0xff9b, 0, 0, 0, 0, 0x1010, 0x1010}, 128})
true
iex> nat64?({0x64, 0xff9b, 0, 0, 0, 0, 0x1010, 0x1010})
true
iex> nat64?(%Pfx{bits: <<0x64::16, 0xff9b::16, 0::64, 0x1010::16, 0x1010::16>>, maxlen: 128})
true
# illegal/bad prefix
iex> nat64?("64:ff9b:1::10.10.10.256")
false