I need to get network device interface settings via streams/ioctl (not
ndd). Specifically, I am looking for link_status and link_duplex.
The DLPI and hme documentation is very sketchy (to be nice) and
appears to leave out the how to. I have run truss on ndd with the
following relevant output:
open("/dev/hme", O_RDWR) = 3
ioctl(3, I_NREAD, 0xFFBEFD3C) = 0
ioctl(3, I_STR, 0xFFBEFCC8) = 0
It appears as though a single I_STR request can get the information.
In addition, things like link_status seem to be driver specific an not
covered by the DLPI spec.
Any thoughts? Thanks.