platform: add compare functions for routes with different compare semantics
Routes are complicated. `ip route add` and `ip route append` behaves differently with respect to determine whether an existing route is idential or not. Extend the cmp() and hash() functions to have a compare type, that covers the different semantics.
Showing with 310 additions and 178 deletions