]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/network/networkd-neighbor.c
network: rename link_drop_managed_xyz() -> link_drop_static_xyz()
[thirdparty/systemd.git] / src / network / networkd-neighbor.c
index 4347a1d282d891f37cb74b7f1d04a5845240b762..6b81950f96c6323fadf0663461daf394b166f851 100644 (file)
@@ -502,7 +502,7 @@ int link_drop_foreign_neighbors(Link *link) {
         return r;
 }
 
-int link_drop_managed_neighbors(Link *link) {
+int link_drop_static_neighbors(Link *link) {
         Neighbor *neighbor;
         int r = 0;
 
@@ -510,7 +510,7 @@ int link_drop_managed_neighbors(Link *link) {
 
         SET_FOREACH(neighbor, link->neighbors) {
                 /* Do not touch nexthops managed by kernel or other tools. */
-                if (neighbor->source == NETWORK_CONFIG_SOURCE_FOREIGN)
+                if (neighbor->source != NETWORK_CONFIG_SOURCE_STATIC)
                         continue;
 
                 /* Ignore neighbors not assigned yet or already removing. */