summaryrefslogtreecommitdiff
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2017-05-15 12:10:51 +0200
committerJan Moskyto Matejka <mq@ucw.cz>2017-05-15 12:10:51 +0200
commitf8d44b01df5d93681e116ccbff39cc4618632825 (patch)
tree5b9c3113353410a2f70347a61856f5d80ff5c6c4 /nest/protocol.h
parent95639d957758cba04aeec7ef319c2de2a5ff52da (diff)
Nest: split route show into separate file
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index f0958678..eed0a291 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -270,6 +270,14 @@ proto_get_router_id(struct proto_config *pc)
return pc->router_id ? pc->router_id : pc->global->router_id;
}
+static inline struct ea_list *
+rte_make_tmp_attrs(struct rte *rt, struct linpool *pool)
+{
+ struct ea_list *(*mta)(struct rte *rt, struct linpool *pool);
+ mta = rt->attrs->src->proto->make_tmp_attrs;
+ return mta ? mta(rt, pool) : NULL;
+}
+
/* Moved from route.h to avoid dependency conflicts */
static inline void rte_update(struct proto *p, const net_addr *n, rte *new) { rte_update2(p->main_channel, n, new, p->main_source); }