NetworkPkg: Refine codes related to Dhcpv4 and Dhcpv6 configuration.
v2: *Since we have redefined the name of arch types in Dhcp.h for http boot, it need to change corresponding codes. Add a new head file Dhcp.h in Mde/Include/IndustryStandard, normalize the universal option numbers and other network number tags. Cc: Sriram Subramanian <sriram-s@hpe.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
This commit is contained in:
@@ -853,9 +853,9 @@ Ip6OnDADFinished (
|
||||
// with DNS SERVERS.
|
||||
//
|
||||
Oro = (EFI_DHCP6_PACKET_OPTION *) OptBuf;
|
||||
Oro->OpCode = HTONS (IP6_CONFIG_DHCP6_OPTION_ORO);
|
||||
Oro->OpCode = HTONS (DHCP6_OPT_ORO);
|
||||
Oro->OpLen = HTONS (2);
|
||||
*((UINT16 *) &Oro->Data[0]) = HTONS (IP6_CONFIG_DHCP6_OPTION_DNS_SERVERS);
|
||||
*((UINT16 *) &Oro->Data[0]) = HTONS (DHCP6_OPT_DNS_SERVERS);
|
||||
|
||||
InfoReqReXmit.Irt = 4;
|
||||
InfoReqReXmit.Mrc = 64;
|
||||
|
Reference in New Issue
Block a user