mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 16:10:11 +01:00
core: fix selecting of best-default-route to consider only unicast routes
Fixes: 5d0d13f570 ('platform: add support for local routes')
This commit is contained in:
parent
5035687a7b
commit
2a1bac6b8a
1 changed files with 2 additions and 1 deletions
|
|
@ -83,7 +83,8 @@ nm_ip_config_best_default_route_is (const NMPObject *obj)
|
|||
* Note that this only considers the main routing table. */
|
||||
return r
|
||||
&& NM_PLATFORM_IP_ROUTE_IS_DEFAULT (r)
|
||||
&& nm_platform_route_table_is_main (r->table_coerced);
|
||||
&& nm_platform_route_table_is_main (r->table_coerced)
|
||||
&& r->type_coerced == nm_platform_route_type_coerce (1 /*RTN_UNICAST*/);
|
||||
}
|
||||
|
||||
const NMPObject *_nm_ip_config_best_default_route_find_better (const NMPObject *obj_cur, const NMPObject *obj_cmp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue