From a8d017deee482396fc4b8bca1a84cd4f0397d1ae Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 14 Nov 2020 20:28:19 +0100 Subject: WIP: don't update route inserted by dynamic routing protocols --- interface-ip.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3