mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 08:04:07 +02:00
1. Refine the error handling for PXE-v4 driver.
Signed-off-by: hhuan13 Reviewed-by: xdu2, tye git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12191 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5657b268e7
commit
379db4ac17
@ -565,7 +565,9 @@ PxeBcCacheDhcpOffer (
|
|||||||
}
|
}
|
||||||
|
|
||||||
OfferType = CachedOffer->OfferType;
|
OfferType = CachedOffer->OfferType;
|
||||||
ASSERT (OfferType < DHCP4_PACKET_TYPE_MAX);
|
if (OfferType >= DHCP4_PACKET_TYPE_MAX) {
|
||||||
|
return ;
|
||||||
|
}
|
||||||
|
|
||||||
if (OfferType == DHCP4_PACKET_TYPE_BOOTP) {
|
if (OfferType == DHCP4_PACKET_TYPE_BOOTP) {
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Dhcp and Discover routines for PxeBc.
|
Dhcp and Discover routines for PxeBc.
|
||||||
|
|
||||||
Copyright (c) 2007 - 2009, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -116,8 +116,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
#define DHCP4_PACKET_TYPE_WFM11A 1
|
#define DHCP4_PACKET_TYPE_WFM11A 1
|
||||||
#define DHCP4_PACKET_TYPE_BINL 2
|
#define DHCP4_PACKET_TYPE_BINL 2
|
||||||
#define DHCP4_PACKET_TYPE_DHCP_ONLY 3
|
#define DHCP4_PACKET_TYPE_DHCP_ONLY 3
|
||||||
#define DHCP4_PACKET_TYPE_MAX 4
|
#define DHCP4_PACKET_TYPE_BOOTP 4
|
||||||
#define DHCP4_PACKET_TYPE_BOOTP DHCP4_PACKET_TYPE_MAX
|
#define DHCP4_PACKET_TYPE_MAX 5
|
||||||
|
|
||||||
#define BIT(x) (1 << x)
|
#define BIT(x) (1 << x)
|
||||||
#define CTRL(x) (0x1F & (x))
|
#define CTRL(x) (0x1F & (x))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user