Iptrie.more
You're seeing just the function
more
, go back to Iptrie module for more information.
Specs
Returns all the prefix,value-pairs where the search prefix
is a prefix for
the stored prefix.
This returns the more specific entries that are enclosed by given search
prefix
. Note that any bitstring is always a prefix of itself. So, if
present, the search prefix
will be included in the result.
Example
iex> ipt = new()
...> |> put("1.1.1.0/25", "A25-lower")
...> |> put("1.1.1.128/25", "A25-upper")
...> |> put("1.1.1.0/30", "A30")
...> |> put("1.1.2.0/24", "B24")
iex>
iex> more(ipt, "1.1.1.0/24")
[
{"1.1.1.0/30", "A30"},
{"1.1.1.0/25", "A25-lower"},
{"1.1.1.128/25", "A25-upper"}
]