From 8e2cce742920aaed48bd9ba6ea62cb91faf47970 Mon Sep 17 00:00:00 2001 From: atib Date: Sat, 8 Aug 2020 14:42:05 +0530 Subject: [PATCH] Added code to print multiple addresses regitered on the same hop count --- ui/report.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/report.c b/ui/report.c index 1f5bd28..e51d95c 100644 --- a/ui/report.c +++ b/ui/report.c @@ -191,8 +191,14 @@ void report_close( mplss = net_mplss(at, z); if ((addrcmp ((void *) &ctl->unspec_addr, (void *) addr2, - ctl->af)) == 0) + ctl->af)) == 0) { break; + } else { + snprint_addr(ctl, name, sizeof(name), addr2); + snprintf(fmt, sizeof(fmt), " %%-%zus", len_hosts); + snprintf(buf, sizeof(buf), fmt, name); + printf("%s\n", buf); + } for (w = 0; w < z; w++) /* Ok... checking if there are ips repeated on same hop */ if ((addrcmp -- 2.47.2