Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Nov 2019 23:21:28 +0000
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        "Mike Karels" <mike@karels.net>
Cc:        freebsd-net@freebsd.org
Subject:   Re: FreeBSD as multicast router
Message-ID:  <2735CD7D-86E8-43D9-8F83-C0A0DEEB9D52@lists.zabbadoz.net>
In-Reply-To: <201911082255.xA8MtBq3079126@mail.karels.net>
References:  <201911082255.xA8MtBq3079126@mail.karels.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8 Nov 2019, at 22:55, Mike Karels wrote:

> They are already exported via sysctl, and fetched that way on a live
> system.  But netstat was stupidly insisting that _mrtstats have a value
> in the namelist first.

Oh DOH!

> That is not true if ip_mroute was loaded as a
> module, and also if VNET was defined.  The fix is not to complain or quit
> unless sysctl fails, or if operating on a core file and _mrtstat is
> not found.
>
> When I'm happy with the patch, I'll put it in review.

Great; sign me up for review.


> I haven't checked
> yet how other functions deal with VNET (if at all) in a core file.

libkvm knows about vnets to some extend.  The answer probably is “badly”.

/bz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2735CD7D-86E8-43D9-8F83-C0A0DEEB9D52>