LAN card status Information

Please tell me API in Solaris / Linux / UNIX to get status information of LAN card.

Look up ioctl(), SIOCGIFCONF etc.