On (05/14/09 11:03), Andrew Gallatin wrote:
>
> As I recall, SIOCGIFHWADDR does not work in {Open,}Solaris, and
> the workarounds (dlpi/streams) are very ugly and require root
> access.  Is this recollection correct?

ifconfig itself uses dlpi_get_physaddr(), but you could use the
SIOCGXARP ioctl to map the info from ifconfig to ether info.


> If yes, is there anything I can do from inside a driver to convert
> from IP address to MAC address?

the actual link layer info itself is stored in the mac_impl_t itself.
It's not clear to me why DLDIOC_MACADDRGET has to be a privileged
operation. Perhaps someone on Crossbow can clarify?

--Sowmini


_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to