Choose a better subnet mask value for the IPv4 address.
Signed-off-by: lpleahy git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13479 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -143,9 +143,9 @@ EslIp4LocalAddressSet (
|
||||
}
|
||||
else {
|
||||
pConfig->SubnetMask.Addr[0] = 0xff;
|
||||
pConfig->SubnetMask.Addr[1] = 0xff;
|
||||
pConfig->SubnetMask.Addr[2] = 0xff;
|
||||
pConfig->SubnetMask.Addr[3] = 0xff;
|
||||
pConfig->SubnetMask.Addr[1] = ( 128 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0;
|
||||
pConfig->SubnetMask.Addr[2] = ( 192 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0;
|
||||
pConfig->SubnetMask.Addr[3] = ( 224 <= pConfig->StationAddress.Addr[0]) ? 0xff : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user