network: use NetworkConfigSource/State to manage addresses and routes

This also fixes #20146.
This commit is contained in:
Yu Watanabe
2021-09-24 21:46:32 +09:00
parent c7e445abd5
commit 3b6a3bdebf
27 changed files with 1701 additions and 2340 deletions
-4
View File
@@ -285,10 +285,6 @@ static int l2tp_acquire_local_address(L2tpTunnel *t, Link *link, union in_addr_u
if (l2tp_acquire_local_address_one(t, a, ret) >= 0)
return 1;
SET_FOREACH(a, link->addresses_foreign)
if (l2tp_acquire_local_address_one(t, a, ret) >= 0)
return 1;
return -ENODATA;
}