mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-15 17:08:06 +02:00
platform: fix route addition ordering
This commit is contained in:
parent
643291bea5
commit
47167cab4f
1 changed files with 2 additions and 2 deletions
|
|
@ -2142,7 +2142,7 @@ nm_platform_ip4_route_sync (int ifindex, const GArray *known_routes)
|
|||
if (NM_PLATFORM_IP_ROUTE_IS_DEFAULT (known_route))
|
||||
continue;
|
||||
|
||||
if ((known_route->gateway == 0) ^ (i_type != 0)) {
|
||||
if ((known_route->gateway == 0) ^ (i_type == 0)) {
|
||||
/* Make two runs over the list of routes. On the first, only add
|
||||
* device routes, on the second the others (gateway routes). */
|
||||
continue;
|
||||
|
|
@ -2216,7 +2216,7 @@ nm_platform_ip6_route_sync (int ifindex, const GArray *known_routes)
|
|||
if (NM_PLATFORM_IP_ROUTE_IS_DEFAULT (known_route))
|
||||
continue;
|
||||
|
||||
if (IN6_IS_ADDR_UNSPECIFIED (&known_route->gateway) ^ (i_type != 0)) {
|
||||
if (IN6_IS_ADDR_UNSPECIFIED (&known_route->gateway) ^ (i_type == 0)) {
|
||||
/* Make two runs over the list of routes. On the first, only add
|
||||
* device routes, on the second the others (gateway routes). */
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue