return as;
/* If AS_PATH is not defined, we treat rte as locally originated */
- struct bgp_route_ctx *p = (struct bgp_route_ctx *) ea_find(r->attrs->eattrs, EA_ROUTE_CONTEXT)->u.ptr;
+ struct bgp_route_ctx *p = SKIP_BACK(struct bgp_route_ctx, bgp_rte_ctx, rte_get_context(r));
return p->confederation ?: p->local_as;
}
.template = "mrtload%d",
.class = PROTOCOL_MRTLOAD,
.proto_size = sizeof(struct mrtload_proto),
- .config_size = sizeof(struct mrt_config),
+ .config_size = sizeof(struct mrtload_config),
.init = mrtload_init,
.start = mrtload_start,
.shutdown = mrtload_shutdown,