> Hey Artem Thanks for a quick reply! > I observed the same after digging into the "ifconfig" source code, but it > seems that I don't have libdlpi.h , dlpi_open() and dlpi_get_physaddr() on > any of my Sol machine i.e. Sol8/9/10. > Do I need to do get it from somewhere? If yes please let me know how I can > get it?
OpenSolaris (which is what this list is about) has libdlpi. Solaris 8 and 9 do not have libdlpi, and Solaris 10 has an unstable and vastly different version of libdlpi. For those older releases, you'll need to do one of the following: * Program directly to the underlying DLPI message-based API (which is really tedious and error-prone). * Port libdlpi from the OpenSolaris source tree and program to it. Note that the port will need to be done carefully since libdlpi consumes some uncommitted interfaces. * Use another API. For instance, if you can be sure the hardware address is tied to a local IP address, SIOCGLIFARP might work. -- meem _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code