I'm not runnging any daemons on system. No multicast software or router running. But netstat output is scrambled. # uname -a FreeBSD test.test.com 12.1-STABLE FreeBSD 12.1-STABLE #8 1f999e39f46(v2)-dirty: Wed Apr 22 08:40:36 +03 2020 test@test.test.com:/usr/obj/usr/src/amd64.amd64/sys/amd64 # netstat -g IPv4 Virtual Interface Table Vif Thresh Local-Address Remote-Address Pkts-In Pkts-Out 0 192 1.248.255.255 0 0 5 137 0.254.255.255 18446741874692295056 18446741874692295040 IPv4 Multicast Forwarding Table is empty IPv6 Multicast Interface Table is empty IPv6 Multicast Forwarding Table is empty
There is no problem FreeBSD 12.1-p5 Latest SVN base/stable/12 kernel produces this problem.
Problem started after this commit: https://svnweb.freebsd.org/base?view=revision&revision=356621
Notify committer of r356621.
problem still exists on FreeBSD stable/12, even on 12.2
Sorry, the apparent Cc: on a bug report never reached my personal attention. Confirmed it. Not sure it'll make 12.2 anymore; really sorry about it. I'll have a look and fix this; I guess quickly switching this to SYSCTL_PROC will do; need to test stuff again with mrouting however as well.
A commit references this bug: Author: bz Date: Sun Oct 11 00:01:00 UTC 2020 New revision: 366623 URL: https://svnweb.freebsd.org/changeset/base/366623 Log: ip_mroute: fix the viftable export sysctl It seems that in r354857 I got more than one thing wrong. Convert the SYSCTL_OPAQUE to a SYSCTL_PROC to properly export the these days allocated and not longer static per-vnet viftable array. This fixes a problem with netstat -g which would show bogus information for the IPv4 Virtual Interface Table. PR: 246626 Reported by: Ozkan KIRIK (ozkan.kirik gmail.com) MFC after: 3 days Changes: head/sys/netinet/ip_mroute.c
A commit references this bug: Author: bz Date: Thu Nov 5 13:43:07 UTC 2020 New revision: 367381 URL: https://svnweb.freebsd.org/changeset/base/367381 Log: MFC r366623: ip_mroute: fix the viftable export sysctl It seems that in r354857 I got more than one thing wrong. Convert the SYSCTL_OPAQUE to a SYSCTL_PROC to properly export the these days allocated and not longer static per-vnet viftable array. This fixes a problem with netstat -g which would show bogus information for the IPv4 Virtual Interface Table. PR: 246626 Changes: _U stable/12/ stable/12/sys/netinet/ip_mroute.c
Thanks a lot for reporting and tracking the commit down! Sorry that the fix was delayed.
Thank you