Index | Thread | Search

From:
Jan Klemkow <jan@openbsd.org>
Subject:
netstat: fix output of mroute6 stats
To:
tech@openbsd.org
Date:
Mon, 19 May 2025 01:55:25 +0200

Download raw body.

Thread
Hi,

Wrong mrt6proto check prevents netstat from printing the mroute6 stats.
Using the same mrt6proto check here as in mroute6pr() above in this
file.

ok?

bye,
Jan

Index: mroute6.c
===================================================================
RCS file: /cvs/src/usr.bin/netstat/mroute6.c,v
diff -u -p -r1.25 mroute6.c
--- mroute6.c	5 Dec 2021 22:36:19 -0000	1.25
+++ mroute6.c	18 May 2025 23:51:05 -0000
@@ -203,8 +203,7 @@ mrt6_stats(void)
 	}
 	switch (mrt6proto) {
 	case 0:
-		printf("no IPv6 multicast routing compiled into this system\n");
-		return;
+		break;
 	default:
 		printf("IPv6 multicast routing protocol %u, unknown\n",
 		    mrt6proto);