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
This commit is contained in:
hhuan13 2010-12-03 08:00:22 +00:00
parent 5f88eebe2b
commit 852b634128
2 changed files with 1 additions and 3 deletions

View File

@ -97,7 +97,7 @@ PxeBcBuildDhcp6Options (
// Append client network device interface option // Append client network device interface option
// //
OptList[Index]->OpCode = HTONS (PXEBC_DHCP6_OPT_UNDI); 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; OptEnt.Undi = (PXEBC_DHCP6_OPTION_UNDI *) OptList[Index]->Data;
if (Private->Nii != NULL) { if (Private->Nii != NULL) {
@ -110,7 +110,6 @@ PxeBcBuildDhcp6Options (
OptEnt.Undi->MinorVer = DEFAULT_UNDI_MINOR; OptEnt.Undi->MinorVer = DEFAULT_UNDI_MINOR;
} }
OptEnt.Undi->Reserved = 0;
Index++; Index++;
OptList[Index] = GET_NEXT_DHCP6_OPTION (OptList[Index - 1]); OptList[Index] = GET_NEXT_DHCP6_OPTION (OptList[Index - 1]);

View File

@ -85,7 +85,6 @@ typedef struct {
UINT8 Type; UINT8 Type;
UINT8 MajorVer; UINT8 MajorVer;
UINT8 MinorVer; UINT8 MinorVer;
UINT8 Reserved;
} PXEBC_DHCP6_OPTION_UNDI; } PXEBC_DHCP6_OPTION_UNDI;
typedef struct { typedef struct {