> Sent: Thursday, October 14, 2021 at 2:00 AM
> From: "Pete Wright via freebsd-questions" <
freebsd-...@freebsd.org>
> To: "Rocky Hotas" <
rocky...@post.com>, "FreeBSD Questions" <
freebsd-...@freebsd.org>
> Subject: Re: FreeBSD equivalent of ethtool
[...]
> I think it really depends on what your specific use-case is.
Sorry, I didn't specify it explicitly. In particular, `ethtool -d
<network_interface>', that is: dumping all the values in the internal
registers of the NIC.
> I find that BSD ifconfig(8) covers most use cases for configuring
> interfaces (both physical and virtual), and the sysctl interface is also
> useful for pulling and setting device specific information. the latter
> is usually well documented in the man page for the interface (see
> if_em(4) for example).
So, maybe I can look in sysctl or ifconfig(8), if they also allow the
register dumping.
> it should be noted that ifconfig(8) on bsd's tends to do much more than
> the old linux ifconfig and probably the new "ip" command as well.
Yes, the BSD one is a very different and complex tool.
Rocky