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:
@@ -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) {
|
||||
|
@@ -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);
|
||||
|
||||
//
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user