Code Scrub for DxeCrc32GuidedSectionExtractLib library instance.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5455 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2008-07-11 08:18:17 +00:00
parent 4e5d040ff8
commit 2a86ff1cb0
6 changed files with 11 additions and 9 deletions

View File

@@ -409,7 +409,7 @@ DhcpLeaseAcquired (
if (DhcpSb->Netmask == 0) {
Class = NetGetIpClass (DhcpSb->ClientAddr);
DhcpSb->Netmask = mIp4AllMasks[Class << 3];
DhcpSb->Netmask = gIp4AllMasks[Class << 3];
}
if (DhcpSb->LeaseIoPort != NULL) {

View File

@@ -554,7 +554,7 @@ Ip4SetAddress (
Type = NetGetIpClass (IpAddr);
Len = NetGetMaskLength (SubnetMask);
Netmask = mIp4AllMasks[MIN (Len, Type << 3)];
Netmask = gIp4AllMasks[MIN (Len, Type << 3)];
Interface->NetBrdcast = (IpAddr | ~Netmask);
//

View File

@@ -796,7 +796,7 @@ Ip4StationAddressValid (
return FALSE;
}
NetBrdcastMask = mIp4AllMasks[MIN (Len, Type << 3)];
NetBrdcastMask = gIp4AllMasks[MIN (Len, Type << 3)];
if (Ip == (Ip | ~NetBrdcastMask)) {
return FALSE;