MdeModulePkg: Update IP4 stack drivers for classless address unicast check.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
This commit is contained in:
@ -393,8 +393,6 @@ DhcpLeaseAcquired (
|
||||
IN OUT DHCP_SERVICE *DhcpSb
|
||||
)
|
||||
{
|
||||
INTN Class;
|
||||
|
||||
DhcpSb->ClientAddr = EFI_NTOHL (DhcpSb->Selected->Dhcp4.Header.YourAddr);
|
||||
|
||||
if (DhcpSb->Para != NULL) {
|
||||
@ -403,9 +401,7 @@ DhcpLeaseAcquired (
|
||||
}
|
||||
|
||||
if (DhcpSb->Netmask == 0) {
|
||||
Class = NetGetIpClass (DhcpSb->ClientAddr);
|
||||
ASSERT (Class < IP4_ADDR_CLASSE);
|
||||
DhcpSb->Netmask = gIp4AllMasks[Class << 3];
|
||||
return EFI_ABORTED;
|
||||
}
|
||||
|
||||
if (DhcpSb->LeaseIoPort != NULL) {
|
||||
|
Reference in New Issue
Block a user