This is the code which i wrote to extract mac address .The mac address replied is always same , although i change the mac address the way u asked me to do in previous post .Ethernet connection is created using the mac address which i give , but while checking the mac address, it doe not match with the value which i gave.
IPCFG_IP_ADDRESS_DATA ipaddr;
char mac[6];
ipcfg_get_mac(IPCFG_default_enet_device,mac);
printf("%x:%x:%x:%x:%x:%x\n",mac[5],mac[4],mac[3],mac[2],mac[1],mac[0]);