[email protected] writes:
> 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.

Note that this works only if the interface is plumbed and up.  It
doesn't work otherwise.

> > 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?

We've discussed this before ...

  https://opensolaris.org/jive/thread.jspa?messageID=365727

The Crossbow folks were imitating 'ifconfig', but at least Seb and I
think it's actually a Crossbow bug.

-- 
James Carlson, Solaris Networking              <[email protected]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to