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