mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 12:50:06 +01:00
core: minor cleanup in nm_platform_ip_route_get_prune_list()
This commit is contained in:
parent
c29d995000
commit
fe1bf4c907
1 changed files with 5 additions and 5 deletions
|
|
@ -4330,21 +4330,21 @@ nm_platform_ip_route_get_prune_list(NMPlatform * self,
|
||||||
|
|
||||||
c_list_for_each (iter, &head_entry->lst_entries_head) {
|
c_list_for_each (iter, &head_entry->lst_entries_head) {
|
||||||
const NMPObject * obj = c_list_entry(iter, NMDedupMultiEntry, lst_entries)->obj;
|
const NMPObject * obj = c_list_entry(iter, NMDedupMultiEntry, lst_entries)->obj;
|
||||||
|
const NMPlatformIPXRoute *rt = NMP_OBJECT_CAST_IPX_ROUTE(obj);
|
||||||
|
|
||||||
switch (route_table_sync) {
|
switch (route_table_sync) {
|
||||||
case NM_IP_ROUTE_TABLE_SYNC_MODE_MAIN:
|
case NM_IP_ROUTE_TABLE_SYNC_MODE_MAIN:
|
||||||
if (!nm_platform_route_table_is_main(
|
if (!nm_platform_route_table_is_main(nm_platform_ip_route_get_effective_table(&rt->rx)))
|
||||||
nm_platform_ip_route_get_effective_table(NMP_OBJECT_CAST_IP_ROUTE(obj))))
|
|
||||||
continue;
|
continue;
|
||||||
break;
|
break;
|
||||||
case NM_IP_ROUTE_TABLE_SYNC_MODE_FULL:
|
case NM_IP_ROUTE_TABLE_SYNC_MODE_FULL:
|
||||||
if (nm_platform_ip_route_get_effective_table(NMP_OBJECT_CAST_IP_ROUTE(obj))
|
if (nm_platform_ip_route_get_effective_table(&rt->rx) == RT_TABLE_LOCAL)
|
||||||
== RT_TABLE_LOCAL)
|
|
||||||
continue;
|
continue;
|
||||||
break;
|
break;
|
||||||
case NM_IP_ROUTE_TABLE_SYNC_MODE_ALL:
|
case NM_IP_ROUTE_TABLE_SYNC_MODE_ALL:
|
||||||
case NM_IP_ROUTE_TABLE_SYNC_MODE_ALL_PRUNE:
|
case NM_IP_ROUTE_TABLE_SYNC_MODE_ALL_PRUNE:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
nm_assert_not_reached();
|
nm_assert_not_reached();
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue