Show port in path

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-03-01 13:29:14 +00:00
parent 235250e49d
commit b4ec962a3b

View File

@@ -41,9 +41,10 @@ gt_path_status(int fd)
printf("path %s\n" printf("path %s\n"
" bind: %s\n" " bind: %s\n"
" peer: %s\n" " peer: %s port %"PRIu16"\n"
" rtt: %.3f\n", " rtt: %.3f\n",
statestr, bindstr, peerstr, statestr, bindstr, peerstr,
gt_get_port((struct sockaddr *)&res.path_status.addr),
res.path_status.rtt/(double)1e3); res.path_status.rtt/(double)1e3);
} while (res.ret == EAGAIN); } while (res.ret == EAGAIN);