summaryrefslogtreecommitdiff
path: root/proto/babel/babel.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/babel/babel.c')
-rw-r--r--proto/babel/babel.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c
index ce05191c..44c6adb8 100644
--- a/proto/babel/babel.c
+++ b/proto/babel/babel.c
@@ -2087,20 +2087,14 @@ babel_prepare_attrs(struct linpool *pool, ea_list *next, uint metric, u64 router
static int
-babel_import_control(struct proto *P, struct rte **new, struct ea_list **attrs, struct linpool *pool)
+babel_import_control(struct proto *P, struct rte **new, struct ea_list **attrs UNUSED, struct linpool *pool UNUSED)
{
- struct babel_proto *p = (void *) P;
- rte *rt = *new;
+ rte *e = *new;
/* Reject our own unreachable routes */
- if ((rt->attrs->dest == RTD_UNREACHABLE) && (rt->attrs->src->proto == P))
+ if ((e->attrs->dest == RTD_UNREACHABLE) && (e->attrs->src->proto == P))
return -1;
-
- /* Prepare attributes with initial values */
- if (rt->attrs->source != RTS_BABEL)
- *attrs = babel_prepare_attrs(pool, NULL, 0, p->router_id);
-
return 0;
}