Network driver info

How do you find out whether a 10/100 ethernet card is connected to a 10Mbit
or 100Mbit network?

This is the “Media Rate” returned by “netinfo -l”. I’ve looked at the
if_info.c example in the “netraw.v4.tgz”. It seems the drivers register
this data with Net, but I can’t see how to get at it. I’d also like to read
the other data returned by netinfo, like Tx and Rx packet stats, collisions,
and CRC errors.

Thanks in advance,


“There’s always one more bug…”
– Bubba DuPree (1986)