/* * get_mac_addr * * Read the MAC address in a board specific way. Prompt user to enter serial * number to generate MAC address if failed to read from flash. * */ int get_mac_addr(NET net, unsigned char mac_addr[6]) { error_t error = 0; error = get_board_mac_addr(mac_addr); if(error) { /* Failed read MAC address from flash, prompt user to enter serial number to generate MAC address. */ error = generate_mac_addr(mac_addr); } return error; }
/* * get_mac_addr * * Read the MAC address in a board specific way * */ int get_mac_addr(NET net, unsigned char mac_addr[6]) { return (get_board_mac_addr(mac_addr)); }