summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-11-14 20:28:19 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2020-11-14 20:28:24 +0100
commita8d017deee482396fc4b8bca1a84cd4f0397d1ae (patch)
treef0d56c50aaaa96d9f6391a2f14204ad88418951e
parented11f0c0ffe4fdacfe3f8223049ef8a61d9c53e9 (diff)
WIP: don't update route inserted by dynamic routing protocolsfix-dynamic-routing
-rw-r--r--interface-ip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-ip.c b/interface-ip.c
index 6efc3c5..ad8942a 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -293,6 +293,9 @@ interface_ip_add_target_route(union if_addr *addr, bool v6, struct interface *if
if (!r_next)
return NULL;
+ /* Don't update route inserted by dynamic routing protocols. */
+ /* TODO check proto */
+
iface = r_next->iface;
if (defaultroute_target)
return iface;