From 887460bd1bab873bb5c3d783f61bd5745ada3cb2 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Thu, 24 May 2018 20:18:20 -0400 Subject: [PATCH] Copy TID and TRP ports from inforec when accepting a route update --- trp/trps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.1.4