From: Jennifer Richards Date: Fri, 25 May 2018 00:18:20 +0000 (-0400) Subject: Copy TID and TRP ports from inforec when accepting a route update X-Git-Tag: 3.4.0~1^2~18^2~10 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=commitdiff_plain;h=887460bd1bab873bb5c3d783f61bd5745ada3cb2 Copy TID and TRP ports from inforec when accepting a route update --- diff --git a/trp/trps.c b/trp/trps.c index 694c022..9305e7a 100644 --- a/trp/trps.c +++ b/trp/trps.c @@ -636,8 +636,9 @@ static TRP_RC trps_accept_update(TRPS_INSTANCE *trps, TRP_UPD *upd, TRP_INFOREC trp_route_set_realm(entry, trp_upd_dup_realm(upd)); trp_route_set_peer(entry, trp_upd_dup_peer(upd)); trp_route_set_trust_router(entry, trp_inforec_dup_trust_router(rec)); + trp_route_set_trust_router_port(entry, trp_inforec_get_trust_router_port(rec)); trp_route_set_next_hop(entry, trp_inforec_dup_next_hop(rec)); - /* TODO: pass next hop port (now defaults to TID_PORT) --jlr */ + trp_route_set_next_hop_port(entry, trp_inforec_get_next_hop_port(rec)); if ((trp_route_get_comm(entry)==NULL) ||(trp_route_get_realm(entry)==NULL) ||(trp_route_get_peer(entry)==NULL)