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