Functions implementation related with DHCPv6 for UefiPxeBc Driver.\r
\r
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>\r
- Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
\r
Status = PxeBc->UdpRead (\r
PxeBc,\r
- EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_SRC_IP,\r
- &Private->StationIp,\r
+ EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_SRC_IP | EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_DEST_IP,\r
+ NULL,\r
&SrcPort,\r
&Private->ServerIp,\r
&DestPort,\r
UINT8 *RequestOpt;\r
UINT8 *DiscoverOpt;\r
UINTN ReadSize;\r
- UINT16 OpFlags;\r
UINT16 OpCode;\r
UINT16 OpLen;\r
UINT32 Xid;\r
Request = Private->Dhcp6Request;\r
SrcPort = PXEBC_BS_DISCOVER_PORT;\r
DestPort = PXEBC_BS_DISCOVER_PORT;\r
- OpFlags = 0;\r
\r
if (!UseBis && Layer != NULL) {\r
*Layer &= EFI_PXE_BASE_CODE_BOOT_LAYER_MASK;\r
\r
Status = PxeBc->UdpWrite (\r
PxeBc,\r
- OpFlags,\r
+ 0,\r
&Private->ServerIp,\r
&DestPort,\r
NULL,\r
\r
Status = PxeBc->UdpRead (\r
PxeBc,\r
- OpFlags,\r
- &Private->StationIp,\r
+ EFI_PXE_BASE_CODE_UDP_OPFLAGS_ANY_DEST_IP,\r
+ NULL,\r
&SrcPort,\r
&Private->ServerIp,\r
&DestPort,\r