mirror of
https://github.com/espressif/openthread.git
synced 2026-07-10 22:30:21 +00:00
4b2c2e5566
This commit adds an overload of operator `<` in `Ip6::Prefix` class. A prefix with shorter length is considered smaller than the one with longer length. If the prefix lengths are equal, then the prefix bytes are compared directly to determine the smaller prefix. This commit then changes `RoutingManager` to use the newly added operator `<` overload. Unit test `test_ip6_address.cpp` is updated to cover the behavior of the new operator.