> i am tring to get mac address from solaris machine, > using c application. > i am using ioctl function with SIOCGIFHWADDR command, > but when i compaile this appliction, there is error : > `SIOCGIFHWADDR' undeclared > is there anyone know what the problem? > > thank u
This must almost be a FAQ, or at least, just obscure enough to stump all those who think it should work the way it works on other OSs. But it has been answered many times. See for example: https://www.opensolaris.org/jive/thread.jspa?threadID=64461&tstart=120 http://www.opensolaris.org/jive/thread.jspa?messageID=15421 https://www.opensolaris.org/jive/thread.jspa?threadID=64244 Or just google a little. I don't know if the current OpenSolaris libdlpi has been backported to Solaris 10 yet, so knowing how to do it the hard way may still be useful if you want to do this also on older versions. -- This message posted from opensolaris.org