Revision f8d44b01 nest/protocol.h

View differences:

nest/protocol.h
270 270
  return pc->router_id ? pc->router_id : pc->global->router_id;
271 271
}
272 272

  
273
static inline struct ea_list *
274
rte_make_tmp_attrs(struct rte *rt, struct linpool *pool)
275
{
276
  struct ea_list *(*mta)(struct rte *rt, struct linpool *pool);
277
  mta = rt->attrs->src->proto->make_tmp_attrs;
278
  return mta ? mta(rt, pool) : NULL;
279
}
280

  
273 281
/* Moved from route.h to avoid dependency conflicts */
274 282
static inline void rte_update(struct proto *p, const net_addr *n, rte *new) { rte_update2(p->main_channel, n, new, p->main_source); }
275 283

  

Also available in: Unified diff