]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c
Fixed a bug for OPTION_NII(62) defined in RFC 5970.
[mirror_edk2.git] / NetworkPkg / UefiPxeBcDxe / PxeBcDhcp6.c
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