CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2025/05/19 18:08:28
Modified files: usr.bin/netstat: mroute.c mroute6.c Log message: Fix netstat(1) multicast route statistics. Do not call IPCTL_MRTPROTO sysctl(8) before IPCTL_MRTSTATS. One failing sysctl is enough to recognize that kernel does not support MROUTING. Check for the correct error code that the kernel generates. This fixes printing IPv6 multicast route statistics. They were skipped before as the protocol number was unexpected since PIM kernel implementation has been deleted. OK jan@