]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fixed a bug for OPTION_NII(62) defined in RFC 5970.
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 3 Dec 2010 08:00:22 +0000 (08:00 +0000)
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 3 Dec 2010 08:00:22 +0000 (08:00 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11116 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.h

index d72e62b6a9e36f01b5f753f89eb961435f4bd786..64e15030c5eb6ed154356a699b33cbbca3b960fc 100644 (file)
@@ -97,7 +97,7 @@ PxeBcBuildDhcp6Options (
   // Append client network device interface option\r
   //\r
   OptList[Index]->OpCode     = HTONS (PXEBC_DHCP6_OPT_UNDI);\r
-  OptList[Index]->OpLen      = HTONS ((UINT16) sizeof (PXEBC_DHCP6_OPTION_UNDI));\r
+  OptList[Index]->OpLen      = HTONS ((UINT16)3);\r
   OptEnt.Undi                = (PXEBC_DHCP6_OPTION_UNDI *) OptList[Index]->Data;\r
 \r
   if (Private->Nii != NULL) {\r
@@ -110,7 +110,6 @@ PxeBcBuildDhcp6Options (
     OptEnt.Undi->MinorVer    = DEFAULT_UNDI_MINOR;\r
   }\r
 \r
-  OptEnt.Undi->Reserved      = 0;\r
   Index++;\r
   OptList[Index]             = GET_NEXT_DHCP6_OPTION (OptList[Index - 1]);\r
 \r
index 0eccacb9624aef72b94c074c7f47621b07f9219c..bf4839c493b8c23a4460c9be0b0997447c9d48f5 100644 (file)
@@ -85,7 +85,6 @@ typedef struct {
   UINT8 Type;\r
   UINT8 MajorVer;\r
   UINT8 MinorVer;\r
-  UINT8 Reserved;\r
 } PXEBC_DHCP6_OPTION_UNDI;\r
 \r
 typedef struct {\r