X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=include%2Ftrp_internal.h;h=b48706c712be88310fcd638c20c399365fdf5936;hp=8401bfa70cab2c0f921d3dab0456da2157dc916f;hb=7d902566f139ab6603c2b4a534c12f465526790d;hpb=b9776b2a5e8fa45749148e34c3f2df6ec4249ead diff --git a/include/trp_internal.h b/include/trp_internal.h index 8401bfa..b48706c 100644 --- a/include/trp_internal.h +++ b/include/trp_internal.h @@ -58,8 +58,9 @@ /* TRP update record types */ typedef struct trp_inforec_route { TR_NAME *trust_router; + int trust_router_port; TR_NAME *next_hop; - unsigned int next_hop_port; + int next_hop_port; unsigned int metric; unsigned int interval; } TRP_INFOREC_ROUTE; @@ -275,11 +276,13 @@ TR_NAME *trp_inforec_get_realm(TRP_INFOREC *rec); TR_NAME *trp_inforec_dup_realm(TRP_INFOREC *rec); TRP_RC trp_inforec_set_realm(TRP_INFOREC *rec, TR_NAME *realm); TR_NAME *trp_inforec_get_trust_router(TRP_INFOREC *rec); +int trp_inforec_get_trust_router_port(TRP_INFOREC *rec); TR_NAME *trp_inforec_dup_trust_router(TRP_INFOREC *rec); -TRP_RC trp_inforec_set_trust_router(TRP_INFOREC *rec, TR_NAME *trust_router); +TRP_RC trp_inforec_set_trust_router(TRP_INFOREC *rec, TR_NAME *trust_router, int port); TR_NAME *trp_inforec_get_next_hop(TRP_INFOREC *rec); +int trp_inforec_get_next_hop_port(TRP_INFOREC *rec); TR_NAME *trp_inforec_dup_next_hop(TRP_INFOREC *rec); -TRP_RC trp_inforec_set_next_hop(TRP_INFOREC *rec, TR_NAME *next_hop); +TRP_RC trp_inforec_set_next_hop(TRP_INFOREC *rec, TR_NAME *next_hop, int port); unsigned int trp_inforec_get_metric(TRP_INFOREC *rec); TRP_RC trp_inforec_set_metric(TRP_INFOREC *rec, unsigned int metric); unsigned int trp_inforec_get_interval(TRP_INFOREC *rec);