[prev in list] [next in list] [prev in thread] [next in thread]
List: bird-users
Subject: [RFC PATCH 09/20] use net_type when looking up symbols in SYM_FLAG_SAME check
From: Asbjørn Sloth Tønnesen <ast () 2e8 ! dk>
Date: 2019-12-30 16:56:35
Message-ID: 20191230165646.1563060-10-ast () 2e8 ! dk
[Download RAW message or body]
---
filter/filter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/filter/filter.c b/filter/filter.c
index b8147662..2e3ae8ba 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -461,7 +461,7 @@ filter_commit(struct config *new, struct config *old)
WALK_LIST(sym, new->symbols)
switch (sym->class) {
case SYM_FUNCTION:
- if ((osym = cf_find_symbol(old, sym->name)) &&
+ if ((osym = cf_find_typed_symbol(old, sym->name, sym->net_type)) &&
(osym->class == SYM_FUNCTION) &&
f_same(sym->function, osym->function))
sym->flags |= SYM_FLAG_SAME;
@@ -470,7 +470,7 @@ filter_commit(struct config *new, struct config *old)
break;
case SYM_FILTER:
- if ((osym = cf_find_symbol(old, sym->name)) &&
+ if ((osym = cf_find_typed_symbol(old, sym->name, sym->net_type)) &&
(osym->class == SYM_FILTER) &&
f_same(sym->filter->root, osym->filter->root))
sym->flags |= SYM_FLAG_SAME;
--
2.24.0
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic