diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-17 14:50:00 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-17 14:50:00 +0200 |
commit | d19617f06b4526bccc2fc5e5e15c43c754b99a4d (patch) | |
tree | cf74bc8e3c56a5d755028c57b02c2baf0c5f0c94 /nest/protocol.h | |
parent | 144c10fad1ed6a2520abd1c43501ce00ea2699db (diff) | |
parent | 31874783c44dd59c355921908016f9b42d22ef02 (diff) |
Merge remote-tracking branch 'origin/int-new' into int-new
Diffstat (limited to 'nest/protocol.h')
-rw-r--r-- | nest/protocol.h | 8 |
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); } |