- for (Index = 0; Index < MAX_IP4_CONFIG_IN_VARIABLE; Index++) {\r
- if (mIp4ConfigNicList[Index] == NULL) {\r
- mIp4ConfigNicList[Index] = Instance;\r
- Instance->NicIndex = Index;\r
-\r
- if (Instance->NicAddr.Type == NET_IFTYPE_ETHERNET) {\r
- UnicodeSPrint (Instance->NicName, (UINTN) IP4_NIC_NAME_LENGTH, L"eth%d", Index);\r
- } else {\r
- UnicodeSPrint (Instance->NicName, (UINTN) IP4_NIC_NAME_LENGTH, L"unk%d", Index);\r
- }\r
-\r
- break;\r
- }\r
- }\r
-\r
- if (Index == MAX_IP4_CONFIG_IN_VARIABLE) {\r
- Status = EFI_OUT_OF_RESOURCES;\r
+ Status = NetLibGetMacString (Instance->Controller, Instance->Image, &Instance->MacString);\r
+ if (EFI_ERROR (Status)) {\r