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