SIOCGIFADDR

Hi, how can I use ioctl with this parameter ?
I open("/dev/io-net/en0",…) (?), and call this functions, it return -1
with error msg: “Msg too long” !?
Have anybody there experience with getting info about interfaces, protocols
… such as netstat utility ?
Thanks Jakub Safarik