summaryrefslogtreecommitdiff
path: root/NetworkPkg/UefiPxeBcDxe
diff options
context:
space:
mode:
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-03 08:00:22 +0000
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>2010-12-03 08:00:22 +0000
commit852b63412859f34e6d541ec586eec573e520af63 (patch)
tree463667549d4be948d6c6704f1ccaa7ad4d8104ee /NetworkPkg/UefiPxeBcDxe
parent5f88eebe2b317431ff4710aff67bb901d88f5b29 (diff)
downloadedk2-platforms-852b63412859f34e6d541ec586eec573e520af63.tar.xz
Fixed a bug for OPTION_NII(62) defined in RFC 5970.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11116 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg/UefiPxeBcDxe')
-rw-r--r--NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c3
-rw-r--r--NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c b/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
index d72e62b6a9..64e15030c5 100644
--- a/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
+++ b/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
@@ -97,7 +97,7 @@ PxeBcBuildDhcp6Options (
// Append client network device interface option
//
OptList[Index]->OpCode = HTONS (PXEBC_DHCP6_OPT_UNDI);
- OptList[Index]->OpLen = HTONS ((UINT16) sizeof (PXEBC_DHCP6_OPTION_UNDI));
+ OptList[Index]->OpLen = HTONS ((UINT16)3);
OptEnt.Undi = (PXEBC_DHCP6_OPTION_UNDI *) OptList[Index]->Data;
if (Private->Nii != NULL) {
@@ -110,7 +110,6 @@ PxeBcBuildDhcp6Options (
OptEnt.Undi->MinorVer = DEFAULT_UNDI_MINOR;
}
- OptEnt.Undi->Reserved = 0;
Index++;
OptList[Index] = GET_NEXT_DHCP6_OPTION (OptList[Index - 1]);
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h b/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h
index 0eccacb962..bf4839c493 100644
--- a/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h
+++ b/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h
@@ -85,7 +85,6 @@ typedef struct {
UINT8 Type;
UINT8 MajorVer;
UINT8 MinorVer;
- UINT8 Reserved;
} PXEBC_DHCP6_OPTION_UNDI;
typedef struct {