/** @file\r
Functions declaration related with DHCPv6 for HTTP boot driver.\r
\r
-Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
-This program and the accompanying materials are licensed and made available under \r
-the terms and conditions of the BSD License that accompanies this distribution. \r
+Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed and made available under\r
+the terms and conditions of the BSD License that accompanies this distribution.\r
The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php. \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
+http://opensource.org/licenses/bsd-license.php.\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
**/\r
} HTTP_BOOT_DHCP6_OPTION_ARCH;\r
\r
typedef struct {\r
- UINT8 ClassIdentifier[10];\r
+ UINT8 ClassIdentifier[11];\r
UINT8 ArchitecturePrefix[5];\r
UINT8 ArchitectureType[5];\r
UINT8 Lit3[1];\r
HTTP_BOOT_DHCP6_OPTION_VENDOR_CLASS *VendorClass;\r
} HTTP_BOOT_DHCP6_OPTION_ENTRY;\r
\r
+#define HTTP_CACHED_DHCP6_PACKET_MAX_SIZE (OFFSET_OF (EFI_DHCP6_PACKET, Dhcp6) + HTTP_BOOT_DHCP6_PACKET_MAX_SIZE)\r
+\r
typedef union {\r
EFI_DHCP6_PACKET Offer;\r
EFI_DHCP6_PACKET Ack;\r
- UINT8 Buffer[HTTP_BOOT_DHCP6_PACKET_MAX_SIZE];\r
+ UINT8 Buffer[HTTP_CACHED_DHCP6_PACKET_MAX_SIZE];\r
} HTTP_BOOT_DHCP6_PACKET;\r
\r
typedef struct {\r
\r
/**\r
This function will register the default DNS addresses to the network device.\r
- \r
+\r
@param[in] Private The pointer to HTTP_BOOT_PRIVATE_DATA.\r
@param[in] DataLength Size of the buffer pointed to by DnsServerData in bytes.\r
@param[in] DnsServerData Point a list of DNS server address in an array\r
\r
/**\r
This function will register the IPv6 gateway address to the network device.\r
- \r
+\r
@param[in] Private The pointer to HTTP_BOOT_PRIVATE_DATA.\r
\r
@retval EFI_SUCCESS The new IP configuration has been configured successfully.\r
\r
/**\r
This function will register the station IP address.\r
- \r
+\r
@param[in] Private The pointer to HTTP_BOOT_PRIVATE_DATA.\r
\r
@retval EFI_SUCCESS The new IP address has been configured successfully.\r