From b4ec962a3bc1a5ad4abfddc3244d10446779d00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Thu, 1 Mar 2018 13:29:14 +0000 Subject: [PATCH] Show port in path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/path.c b/src/path.c index ed4c684..819ec6d 100644 --- a/src/path.c +++ b/src/path.c @@ -41,9 +41,10 @@ gt_path_status(int fd) printf("path %s\n" " bind: %s\n" - " peer: %s\n" + " peer: %s port %"PRIu16"\n" " rtt: %.3f\n", statestr, bindstr, peerstr, + gt_get_port((struct sockaddr *)&res.path_status.addr), res.path_status.rtt/(double)1e3); } while (res.ret == EAGAIN);