mirror of https://github.com/acidanthera/audk.git
Extend the max number of interface to 128 and correct the display of eth name.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8656 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
8d3b5aff68
commit
a1ed88afe6
|
@ -257,17 +257,9 @@ Ip4ConfigDriverBindingStart (
|
||||||
Instance->NicIndex = Index;
|
Instance->NicIndex = Index;
|
||||||
|
|
||||||
if (Instance->NicAddr.Type == NET_IFTYPE_ETHERNET) {
|
if (Instance->NicAddr.Type == NET_IFTYPE_ETHERNET) {
|
||||||
Instance->NicName[0] = 'e';
|
UnicodeSPrint (Instance->NicName, (UINTN) IP4_NIC_NAME_LENGTH, L"eth%d", Index);
|
||||||
Instance->NicName[1] = 't';
|
|
||||||
Instance->NicName[2] = 'h';
|
|
||||||
Instance->NicName[3] = (UINT16) ('0' + Index);
|
|
||||||
Instance->NicName[4] = 0;
|
|
||||||
} else {
|
} else {
|
||||||
Instance->NicName[0] = 'u';
|
UnicodeSPrint (Instance->NicName, (UINTN) IP4_NIC_NAME_LENGTH, L"unk%d", Index);
|
||||||
Instance->NicName[1] = 'n';
|
|
||||||
Instance->NicName[2] = 'k';
|
|
||||||
Instance->NicName[3] = (UINT16) ('0' + Index);
|
|
||||||
Instance->NicName[4] = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue