Message ID | 18D4F5FE-99E1-4333-82EA-EA1FB238DBD0@ovn.org |
---|---|
State | Accepted |
Headers | show |
diff --git a/ovn/utilities/ovn-nbctl.c b/ovn/utilities/ovn-nbctl.c index 8656e10..a8e4294 100644 --- a/ovn/utilities/ovn-nbctl.c +++ b/ovn/utilities/ovn-nbctl.c @@ -1703,7 +1703,7 @@ ipv4_route_cmp(const void *route1_, const void *route2_) if (route1p->plen != route2p->plen) { return route1p->plen > route2p->plen ? -1 : 1; } else if (route1p->addr != route2p->addr) { - return route1p->addr < route2p->addr ? -1 : 1; + return ntohl(route1p->addr) < ntohl(route2p->addr) ? -1 : 1; } else { return 0; }