rpc: track RPC port numbers from info announcements

Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
2 files changed, 3 insertions(+), 0 deletions(-)

M rpc/announce-track.c
M rpc/include/hlog-rpc/announce-sub.h
M rpc/announce-track.c +1 -0
@@ 236,6 236,7 @@ static void announce_track_info_msg(stru
 {
 	struct instance_info *info = &inst->info;
 	struct info_mapping map[] = {
+		{ "rpc-port",   VT_INT, &info->rpc_port, sizeof(info->rpc_port), },
 		{ "hostname",   VT_STR, info->hostname, sizeof(info->hostname), },
 		{ "contest",    VT_STR, info->contest, sizeof(info->contest), },
 		{ "op",         VT_STR, info->op, sizeof(info->op), },

          
M rpc/include/hlog-rpc/announce-sub.h +2 -0
@@ 63,6 63,8 @@ struct instance_info {
 		enum hrig_mode rx_mode;
 	} rig;
 
+	uint16_t rpc_port;
+
 	size_t num_addrs;
 	struct instance_addr *addrs; /* announcement addresses & times */
 };