]> git.proxmox.com Git - mirror_edk2.git/blame - NetworkPkg/Dhcp6Dxe/Dhcp6Impl.h
NetworkPkg/Dhcp6Dxe: Handle the Nil UUID case
[mirror_edk2.git] / NetworkPkg / Dhcp6Dxe / Dhcp6Impl.h
CommitLineData
a3bcde70
HT
1/** @file\r
2 Dhcp6 internal data structure and definition declaration.\r
3\r
03f9cc20 4 Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
a3bcde70
HT
5\r
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php.\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __EFI_DHCP6_IMPL_H__\r
17#define __EFI_DHCP6_IMPL_H__\r
18\r
19\r
20#include <Uefi.h>\r
21\r
142c00c3
ZL
22#include <IndustryStandard/Dhcp.h>\r
23\r
a3bcde70
HT
24#include <Protocol/Dhcp6.h>\r
25#include <Protocol/Udp6.h>\r
cc658224 26#include <Protocol/Ip6Config.h>\r
a3bcde70
HT
27#include <Protocol/ServiceBinding.h>\r
28#include <Protocol/DriverBinding.h>\r
29\r
30#include <Library/UdpIoLib.h>\r
31#include <Library/DebugLib.h>\r
32#include <Library/BaseMemoryLib.h>\r
33#include <Library/MemoryAllocationLib.h>\r
34#include <Library/UefiBootServicesTableLib.h>\r
35#include <Library/UefiRuntimeServicesTableLib.h>\r
36#include <Library/UefiLib.h>\r
37#include <Library/BaseLib.h>\r
38#include <Library/NetLib.h>\r
216f7970 39#include <Library/PrintLib.h>\r
03f9cc20 40#include <Guid/ZeroGuid.h>\r
a3bcde70
HT
41\r
42\r
43typedef struct _DHCP6_IA_CB DHCP6_IA_CB;\r
44typedef struct _DHCP6_INF_CB DHCP6_INF_CB;\r
45typedef struct _DHCP6_TX_CB DHCP6_TX_CB;\r
46typedef struct _DHCP6_SERVICE DHCP6_SERVICE;\r
47typedef struct _DHCP6_INSTANCE DHCP6_INSTANCE;\r
48\r
49#include "Dhcp6Utility.h"\r
50#include "Dhcp6Io.h"\r
51#include "Dhcp6Driver.h"\r
52\r
53#define DHCP6_SERVICE_SIGNATURE SIGNATURE_32 ('D', 'H', '6', 'S')\r
54#define DHCP6_INSTANCE_SIGNATURE SIGNATURE_32 ('D', 'H', '6', 'I')\r
55\r
a3bcde70
HT
56#define DHCP6_PACKET_ALL 0\r
57#define DHCP6_PACKET_STATEFUL 1\r
58#define DHCP6_PACKET_STATELESS 2\r
59\r
60#define DHCP6_BASE_PACKET_SIZE 1024\r
61\r
62#define DHCP6_PORT_CLIENT 546\r
63#define DHCP6_PORT_SERVER 547\r
64\r
65#define DHCP6_INSTANCE_FROM_THIS(Instance) CR ((Instance), DHCP6_INSTANCE, Dhcp6, DHCP6_INSTANCE_SIGNATURE)\r
66#define DHCP6_SERVICE_FROM_THIS(Service) CR ((Service), DHCP6_SERVICE, ServiceBinding, DHCP6_SERVICE_SIGNATURE)\r
67\r
68extern EFI_IPv6_ADDRESS mAllDhcpRelayAndServersAddress;\r
69extern EFI_IPv6_ADDRESS mAllDhcpServersAddress;\r
70extern EFI_DHCP6_PROTOCOL gDhcp6ProtocolTemplate;\r
71\r
a3bcde70
HT
72//\r
73// Control block for each IA.\r
74//\r
75struct _DHCP6_IA_CB {\r
76 EFI_DHCP6_IA *Ia;\r
77 UINT32 T1;\r
78 UINT32 T2;\r
79 UINT32 AllExpireTime;\r
80 UINT32 LeaseTime;\r
81};\r
82\r
83//\r
84// Control block for each transmitted message.\r
85//\r
86struct _DHCP6_TX_CB {\r
87 LIST_ENTRY Link;\r
88 UINT32 Xid;\r
89 EFI_DHCP6_PACKET *TxPacket;\r
90 EFI_DHCP6_RETRANSMISSION RetryCtl;\r
91 UINT32 RetryCnt;\r
92 UINT32 RetryExp;\r
93 UINT32 RetryLos;\r
94 UINT32 TickTime;\r
95 UINT16 *Elapsed;\r
129b8b09 96 BOOLEAN SolicitRetry;\r
a3bcde70
HT
97};\r
98\r
99//\r
100// Control block for each info-request message.\r
101//\r
102struct _DHCP6_INF_CB {\r
103 LIST_ENTRY Link;\r
104 UINT32 Xid;\r
105 EFI_DHCP6_INFO_CALLBACK ReplyCallback;\r
106 VOID *CallbackContext;\r
107 EFI_EVENT TimeoutEvent;\r
108};\r
109\r
110//\r
111// Control block for Dhcp6 instance, it's per configuration data.\r
112//\r
113struct _DHCP6_INSTANCE {\r
114 UINT32 Signature;\r
115 EFI_HANDLE Handle;\r
116 DHCP6_SERVICE *Service;\r
117 LIST_ENTRY Link;\r
118 EFI_DHCP6_PROTOCOL Dhcp6;\r
119 EFI_EVENT Timer;\r
120 EFI_DHCP6_CONFIG_DATA *Config;\r
121 EFI_DHCP6_IA *CacheIa;\r
122 DHCP6_IA_CB IaCb;\r
123 LIST_ENTRY TxList;\r
124 LIST_ENTRY InfList;\r
125 EFI_DHCP6_PACKET *AdSelect;\r
126 UINT8 AdPref;\r
127 EFI_IPv6_ADDRESS *Unicast;\r
216f7970 128 volatile EFI_STATUS UdpSts;\r
75dce340 129 BOOLEAN InDestroy;\r
a3bcde70 130 BOOLEAN MediaPresent;\r
685e44a5 131 //\r
132 // StartTime is used to calculate the 'elapsed-time' option. Refer to RFC3315,\r
133 // the elapsed-time is amount of time since the client began its current DHCP transaction. \r
134 //\r
a3bcde70
HT
135 UINT64 StartTime;\r
136};\r
137\r
138//\r
139// Control block for Dhcp6 service, it's per Nic handle.\r
140//\r
141struct _DHCP6_SERVICE {\r
142 UINT32 Signature;\r
143 EFI_HANDLE Controller;\r
144 EFI_HANDLE Image;\r
145 EFI_SERVICE_BINDING_PROTOCOL ServiceBinding;\r
146 EFI_SIMPLE_NETWORK_PROTOCOL *Snp;\r
cc658224 147 EFI_IP6_CONFIG_PROTOCOL *Ip6Cfg;\r
a3bcde70
HT
148 EFI_DHCP6_DUID *ClientId;\r
149 UDP_IO *UdpIo;\r
150 UINT32 Xid;\r
151 LIST_ENTRY Child;\r
152 UINTN NumOfChild;\r
a3bcde70
HT
153};\r
154\r
155/**\r
156 Starts the DHCPv6 standard S.A.R.R. process.\r
157\r
158 The Start() function starts the DHCPv6 standard process. This function can\r
159 be called only when the state of Dhcp6 instance is in the Dhcp6Init state.\r
160 If the DHCP process completes successfully, the state of the Dhcp6 instance\r
161 will be transferred through Dhcp6Selecting and Dhcp6Requesting to the\r
162 Dhcp6Bound state.\r
163 Refer to rfc-3315 for precise state transitions during this process. At the\r
164 time when each event occurs in this process, the callback function that was set\r
165 by EFI_DHCP6_PROTOCOL.Configure() will be called and the user can take this\r
166 opportunity to control the process.\r
167\r
168 @param[in] This The pointer to Dhcp6 protocol.\r
169\r
170 @retval EFI_SUCCESS The DHCPv6 standard process has started, or it\r
171 completed when CompletionEvent was NULL.\r
172 @retval EFI_ACCESS_DENIED The EFI DHCPv6 Child instance hasn't been configured.\r
173 @retval EFI_INVALID_PARAMETER This is NULL.\r
174 @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated.\r
175 @retval EFI_TIMEOUT The DHCPv6 configuration process failed because no\r
176 response was received from the server within the\r
177 specified timeout value.\r
178 @retval EFI_ABORTED The user aborted the DHCPv6 process.\r
179 @retval EFI_ALREADY_STARTED Some other Dhcp6 instance already started the DHCPv6\r
180 standard process.\r
181 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
182\r
183**/\r
184EFI_STATUS\r
185EFIAPI\r
186EfiDhcp6Start (\r
187 IN EFI_DHCP6_PROTOCOL *This\r
188 );\r
189\r
190/**\r
191 Stops the DHCPv6 standard S.A.R.R. process.\r
192\r
193 The Stop() function is used to stop the DHCPv6 standard process. After this\r
194 function is called successfully, the state of Dhcp6 instance is transferred\r
195 into the Dhcp6Init. EFI_DHCP6_PROTOCOL.Configure() needs to be called\r
196 before DHCPv6 standard process can be started again. This function can be\r
197 called when the Dhcp6 instance is in any state.\r
198\r
199 @param[in] This The pointer to the Dhcp6 protocol.\r
200\r
201 @retval EFI_SUCCESS The Dhcp6 instance is now in the Dhcp6Init state.\r
202 @retval EFI_INVALID_PARAMETER This is NULL.\r
203\r
204**/\r
205EFI_STATUS\r
206EFIAPI\r
207EfiDhcp6Stop (\r
208 IN EFI_DHCP6_PROTOCOL *This\r
209 );\r
210\r
211/**\r
212 Returns the current operating mode data for the Dhcp6 instance.\r
213\r
214 The GetModeData() function returns the current operating mode and\r
215 cached data packet for the Dhcp6 instance.\r
216\r
217 @param[in] This The pointer to the Dhcp6 protocol.\r
218 @param[out] Dhcp6ModeData The pointer to the Dhcp6 mode data.\r
219 @param[out] Dhcp6ConfigData The pointer to the Dhcp6 configure data.\r
220\r
221 @retval EFI_SUCCESS The mode data was returned.\r
222 @retval EFI_INVALID_PARAMETER This is NULL.\r
223 @retval EFI_ACCESS_DENIED The EFI DHCPv6 Protocol instance has not\r
224 been configured when Dhcp6ConfigData is\r
225 not NULL.\r
226**/\r
227EFI_STATUS\r
228EFIAPI\r
229EfiDhcp6GetModeData (\r
230 IN EFI_DHCP6_PROTOCOL *This,\r
231 OUT EFI_DHCP6_MODE_DATA *Dhcp6ModeData OPTIONAL,\r
232 OUT EFI_DHCP6_CONFIG_DATA *Dhcp6ConfigData OPTIONAL\r
233 );\r
234\r
235/**\r
236 Initializes, changes, or resets the operational settings for the Dhcp6 instance.\r
237\r
238 The Configure() function is used to initialize or clean up the configuration\r
239 data of the Dhcp6 instance:\r
240 - When Dhcp6CfgData is not NULL and Configure() is called successfully, the\r
241 configuration data will be initialized in the Dhcp6 instance and the state\r
242 of the configured IA will be transferred into Dhcp6Init.\r
243 - When Dhcp6CfgData is NULL and Configure() is called successfully, the\r
244 configuration data will be cleaned up and no IA will be associated with\r
245 the Dhcp6 instance.\r
246 To update the configuration data for an Dhcp6 instance, the original data\r
247 must be cleaned up before setting the new configuration data.\r
248\r
249 @param[in] This The pointer to the Dhcp6 protocol\r
250 @param[in] Dhcp6CfgData The pointer to the EFI_DHCP6_CONFIG_DATA.\r
251\r
252 @retval EFI_SUCCESS The Dhcp6 is configured successfully with the\r
253 Dhcp6Init state, or cleaned up the original\r
254 configuration setting.\r
255 @retval EFI_ACCESS_DENIED The Dhcp6 instance has been already configured\r
256 when Dhcp6CfgData is not NULL.\r
257 The Dhcp6 instance has already started the\r
258 DHCPv6 S.A.R.R when Dhcp6CfgData is NULL.\r
259 @retval EFI_INVALID_PARAMETER Some of the parameter is invalid.\r
260 @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated.\r
261 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
262\r
263**/\r
264EFI_STATUS\r
265EFIAPI\r
266EfiDhcp6Configure (\r
267 IN EFI_DHCP6_PROTOCOL *This,\r
268 IN EFI_DHCP6_CONFIG_DATA *Dhcp6CfgData OPTIONAL\r
269 );\r
270\r
271/**\r
272 Request configuration information without the assignment of any\r
273 Ia addresses of the client.\r
274\r
275 The InfoRequest() function is used to request configuration information\r
276 without the assignment of any IPv6 address of the client. Client sends\r
277 out Information Request packet to obtain the required configuration\r
278 information, and DHCPv6 server responds with Reply packet containing\r
279 the information for the client. The received Reply packet will be passed\r
280 to the user by ReplyCallback function. If user returns EFI_NOT_READY from\r
281 ReplyCallback, the Dhcp6 instance will continue to receive other Reply\r
282 packets unless timeout according to the Retransmission parameter.\r
283 Otherwise, the Information Request exchange process will be finished\r
284 successfully if user returns EFI_SUCCESS from ReplyCallback.\r
285\r
286 @param[in] This The pointer to the Dhcp6 protocol.\r
287 @param[in] SendClientId If TRUE, the DHCPv6 protocol instance will build Client\r
288 Identifier option and include it into Information Request\r
289 packet. Otherwise, Client Identifier option will not be included.\r
290 @param[in] OptionRequest The pointer to the buffer of option request options.\r
291 @param[in] OptionCount The option number in the OptionList.\r
292 @param[in] OptionList The list of appended options.\r
293 @param[in] Retransmission The pointer to the retransmission of the message.\r
294 @param[in] TimeoutEvent The event of timeout.\r
295 @param[in] ReplyCallback The callback function when a reply was received.\r
296 @param[in] CallbackContext The pointer to the parameter passed to the callback.\r
297\r
298 @retval EFI_SUCCESS The DHCPv6 information request exchange process\r
299 completed when TimeoutEvent is NULL. Information\r
300 Request packet has been sent to DHCPv6 server when\r
301 TimeoutEvent is not NULL.\r
302 @retval EFI_NO_RESPONSE The DHCPv6 information request exchange process failed\r
303 because of no response, or not all requested-options\r
304 are responded to by DHCPv6 servers when Timeout happened.\r
305 @retval EFI_ABORTED The DHCPv6 information request exchange process was aborted\r
306 by the user.\r
307 @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
308 @retval EFI_OUT_OF_RESOURCES Required system resources could not be allocated.\r
309 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
310\r
311**/\r
312EFI_STATUS\r
313EFIAPI\r
314EfiDhcp6InfoRequest (\r
315 IN EFI_DHCP6_PROTOCOL *This,\r
316 IN BOOLEAN SendClientId,\r
317 IN EFI_DHCP6_PACKET_OPTION *OptionRequest,\r
318 IN UINT32 OptionCount,\r
319 IN EFI_DHCP6_PACKET_OPTION *OptionList[] OPTIONAL,\r
320 IN EFI_DHCP6_RETRANSMISSION *Retransmission,\r
321 IN EFI_EVENT TimeoutEvent OPTIONAL,\r
322 IN EFI_DHCP6_INFO_CALLBACK ReplyCallback,\r
323 IN VOID *CallbackContext OPTIONAL\r
324 );\r
325\r
326/**\r
327 Manually extend the valid and preferred lifetimes for the IPv6 addresses\r
328 of the configured IA and update other configuration parameters by sending\r
329 Renew or Rebind packet.\r
330\r
331 The RenewRebind() function is used to manually extend the valid and preferred\r
332 lifetimes for the IPv6 addresses of the configured IA and update other\r
333 configuration parameters by sending a Renew or Rebind packet.\r
334 - When RebindRequest is FALSE and the state of the configured IA is Dhcp6Bound,\r
335 it will send Renew packet to the previously DHCPv6 server and transfer the\r
336 state of the configured IA to Dhcp6Renewing. If valid Reply packet received,\r
337 the state transfers to Dhcp6Bound and the valid and preferred timer restarts.\r
338 If fails, the state transfers to Dhcp6Bound but the timer continues.\r
339 - When RebindRequest is TRUE and the state of the configured IA is Dhcp6Bound,\r
340 it will send a Rebind packet. If a valid Reply packet is received, the state transfers\r
341 to Dhcp6Bound, and the valid and preferred timer restarts. If it fails, the state\r
342 transfers to Dhcp6Init, and the IA can't be used.\r
343\r
344 @param[in] This The pointer to the Dhcp6 protocol.\r
345 @param[in] RebindRequest If TRUE, Rebind packet will be sent and enter Dhcp6Rebinding state.\r
346 Otherwise, Renew packet will be sent and enter Dhcp6Renewing state.\r
347\r
348 @retval EFI_SUCCESS The DHCPv6 renew/rebind exchange process\r
349 completed and at least one IPv6 address of the\r
350 configured IA was bound again when\r
351 EFI_DHCP6_CONFIG_DATA.IaInfoEvent was NULL.\r
352 The EFI DHCPv6 Protocol instance has sent Renew\r
353 or Rebind packet when\r
354 EFI_DHCP6_CONFIG_DATA.IaInfoEvent is not NULL.\r
355 @retval EFI_ACCESS_DENIED The Dhcp6 instance hasn't been configured, or the\r
356 state of the configured IA is not in Dhcp6Bound.\r
357 @retval EFI_ALREADY_STARTED The state of the configured IA has already entered\r
358 Dhcp6Renewing when RebindRequest is FALSE.\r
359 The state of the configured IA has already entered\r
360 Dhcp6Rebinding when RebindRequest is TRUE.\r
361 @retval EFI_ABORTED The DHCPv6 renew/rebind exchange process aborted\r
362 by user.\r
363 @retval EFI_NO_RESPONSE The DHCPv6 renew/rebind exchange process failed\r
364 because of no response.\r
365 @retval EFI_NO_MAPPING No IPv6 address has been bound to the configured\r
366 IA after the DHCPv6 renew/rebind exchange process.\r
367 @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
368 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
369\r
370**/\r
371EFI_STATUS\r
372EFIAPI\r
373EfiDhcp6RenewRebind (\r
374 IN EFI_DHCP6_PROTOCOL *This,\r
375 IN BOOLEAN RebindRequest\r
376 );\r
377\r
378/**\r
379 Inform that one or more addresses assigned by a server are already\r
380 in use by another node.\r
381\r
382 The Decline() function is used to manually decline the assignment of\r
383 IPv6 addresses, which have been already used by another node. If all\r
384 IPv6 addresses of the configured IA are declined through this function,\r
385 the state of the IA will switch through Dhcp6Declining to Dhcp6Init.\r
386 Otherwise, the state of the IA will restore to Dhcp6Bound after the\r
387 declining process. The Decline() can only be called when the IA is in\r
388 Dhcp6Bound state. If the EFI_DHCP6_CONFIG_DATA.IaInfoEvent is NULL,\r
389 this function is a blocking operation. It will return after the\r
390 declining process finishes, or aborted by user.\r
391\r
392 @param[in] This The pointer to the Dhcp6 protocol.\r
393 @param[in] AddressCount The number of declining addresses.\r
394 @param[in] Addresses The pointer to the buffer stored the declining\r
395 addresses.\r
396\r
397 @retval EFI_SUCCESS The DHCPv6 decline exchange process completed\r
398 when EFI_DHCP6_CONFIG_DATA.IaInfoEvent was NULL.\r
399 The Dhcp6 instance has sent Decline packet when\r
400 EFI_DHCP6_CONFIG_DATA.IaInfoEvent is not NULL.\r
401 @retval EFI_ACCESS_DENIED The Dhcp6 instance hasn't been configured, or the\r
402 state of the configured IA is not in Dhcp6Bound.\r
403 @retval EFI_ABORTED The DHCPv6 decline exchange process was aborted by the user.\r
404 @retval EFI_NOT_FOUND Any specified IPv6 address is not correlated with\r
405 the configured IA for this instance.\r
406 @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
407 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
408\r
409**/\r
410EFI_STATUS\r
411EFIAPI\r
412EfiDhcp6Decline (\r
413 IN EFI_DHCP6_PROTOCOL *This,\r
414 IN UINT32 AddressCount,\r
415 IN EFI_IPv6_ADDRESS *Addresses\r
416 );\r
417\r
418/**\r
419 Release one or more addresses associated with the configured Ia\r
420 for the current instance.\r
421\r
422 The Release() function is used to manually release the one or more\r
423 IPv6 address. If AddressCount is zero, it will release all IPv6\r
424 addresses of the configured IA. If all IPv6 addresses of the IA are\r
425 released through this function, the state of the IA will switch\r
426 through Dhcp6Releasing to Dhcp6Init, otherwise, the state of the\r
427 IA will restore to Dhcp6Bound after the releasing process.\r
428 The Release() can only be called when the IA is in a Dhcp6Bound state.\r
429 If the EFI_DHCP6_CONFIG_DATA.IaInfoEvent is NULL, the function is\r
430 a blocking operation. It will return after the releasing process\r
431 finishes, or aborted by user.\r
432\r
433 @param[in] This The pointer to the Dhcp6 protocol.\r
434 @param[in] AddressCount The number of releasing addresses.\r
435 @param[in] Addresses The pointer to the buffer stored the releasing\r
436 addresses.\r
437 @retval EFI_SUCCESS The DHCPv6 release exchange process has\r
438 completed when EFI_DHCP6_CONFIG_DATA.IaInfoEvent\r
439 is NULL. The Dhcp6 instance has sent Release\r
440 packet when EFI_DHCP6_CONFIG_DATA.IaInfoEvent\r
441 is not NULL.\r
442 @retval EFI_ACCESS_DENIED The Dhcp6 instance hasn't been configured, or the\r
443 state of the configured IA is not in Dhcp6Bound.\r
444 @retval EFI_ABORTED The DHCPv6 release exchange process was aborted by the user.\r
445 @retval EFI_NOT_FOUND Any specified IPv6 address is not correlated with\r
446 the configured IA for this instance.\r
447 @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
448 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.\r
449\r
450**/\r
451EFI_STATUS\r
452EFIAPI\r
453EfiDhcp6Release (\r
454 IN EFI_DHCP6_PROTOCOL *This,\r
455 IN UINT32 AddressCount,\r
456 IN EFI_IPv6_ADDRESS *Addresses\r
457 );\r
458\r
459/**\r
460 Parse the option data in the Dhcp6 packet.\r
461\r
462 The Parse() function is used to retrieve the option list in the DHCPv6 packet.\r
463\r
464 @param[in] This The pointer to the Dhcp6 protocol.\r
465 @param[in] Packet The pointer to the Dhcp6 packet.\r
466 @param[in, out] OptionCount The number of option in the packet.\r
467 @param[out] PacketOptionList The array of pointers to the each option in the packet.\r
468\r
469 @retval EFI_SUCCESS The packet was successfully parsed.\r
470 @retval EFI_INVALID_PARAMETER Some parameter is NULL.\r
471 @retval EFI_BUFFER_TOO_SMALL *OptionCount is smaller than the number of options\r
472 that were found in the Packet.\r
473\r
474**/\r
475EFI_STATUS\r
476EFIAPI\r
477EfiDhcp6Parse (\r
478 IN EFI_DHCP6_PROTOCOL *This,\r
479 IN EFI_DHCP6_PACKET *Packet,\r
480 IN OUT UINT32 *OptionCount,\r
481 OUT EFI_DHCP6_PACKET_OPTION *PacketOptionList[] OPTIONAL\r
482 );\r
483\r
484#endif\r