TianoCore EDK2 master
Loading...
Searching...
No Matches
Dhcp6Utility.h
Go to the documentation of this file.
1
10#ifndef __EFI_DHCP6_UTILITY_H__
11#define __EFI_DHCP6_UTILITY_H__
12
13#define DHCP6_10_BIT_MASK 0x3ff
14#define DHCP6_DAD_ADDITIONAL_DELAY 30000000 // 3 seconds
15
28 );
29
44 );
45
52VOID
55 );
56
63VOID
65 IN OUT EFI_DHCP6_MODE_DATA *ModeData
66 );
67
78UINT32
80 IN UINT32 Base,
81 IN BOOLEAN IsFirstRt,
82 IN BOOLEAN NeedSigned
83 );
84
91VOID
93 IN DHCP6_IA_CB *IaCb
94 );
95
109 IN EFI_DHCP6_IA *Ia,
110 IN UINT32 AddressCount,
111 IN EFI_IPv6_ADDRESS *Addresses
112 );
113
127 IN EFI_DHCP6_IA *Ia,
128 IN UINT32 AddressCount,
129 IN EFI_IPv6_ADDRESS *Addresses
130 );
131
138VOID
139EFIAPI
141 IN VOID *Arg
142 );
143
153VOID
154EFIAPI
156 IN NET_BUF *Wrap,
157 IN UDP_END_POINT *EndPoint,
158 IN EFI_STATUS IoStatus,
159 IN VOID *Context
160 );
161
179 IN OUT EFI_DHCP6_PACKET *Packet,
180 IN OUT UINT8 **PacketCursor,
181 IN UINT16 OptType,
182 IN UINT16 OptLen,
183 IN UINT8 *Data
184 );
185
204 IN OUT EFI_DHCP6_PACKET *Packet,
205 IN OUT UINT8 **PacketCursor,
206 IN EFI_DHCP6_IA *Ia,
207 IN UINT32 T1,
208 IN UINT32 T2,
209 IN UINT32 MessageType
210 );
211
229 IN OUT EFI_DHCP6_PACKET *Packet,
230 IN OUT UINT8 **PacketCursor,
231 IN DHCP6_INSTANCE *Instance,
232 OUT UINT16 **Elapsed
233 );
234
243VOID
245 IN UINT16 *Elapsed,
246 IN DHCP6_INSTANCE *Instance
247 );
248
260UINT8 *
262 IN UINT8 *Buf,
263 IN UINT32 SeekLen,
264 IN UINT16 OptType
265 );
266
278UINT8 *
280 IN UINT8 *Buf,
281 IN UINT32 SeekLen,
283 );
284
295VOID
297 IN EFI_DHCP6_IA *CurrentIa,
298 IN UINT8 *IaInnerOpt,
299 IN UINT16 IaInnerLen,
300 OUT UINT32 *AddrNum,
302 );
303
321 IN DHCP6_INSTANCE *Instance,
322 IN UINT8 *IaInnerOpt,
323 IN UINT16 IaInnerLen,
324 IN UINT32 T1,
325 IN UINT32 T2
326 );
327
339 IN DHCP6_INSTANCE *Instance
340 );
341
348VOID
350 IN DHCP6_INSTANCE *Instance
351 );
352
365 OUT UINTN *TimeOut
366 );
367
368#endif
UINT64 UINTN
EFI_STATUS Dhcp6CopyConfigData(IN EFI_DHCP6_CONFIG_DATA *DstCfg, IN EFI_DHCP6_CONFIG_DATA *SorCfg)
Definition: Dhcp6Utility.c:180
EFI_STATUS Dhcp6AppendIaOption(IN OUT EFI_DHCP6_PACKET *Packet, IN OUT UINT8 **PacketCursor, IN EFI_DHCP6_IA *Ia, IN UINT32 T1, IN UINT32 T2, IN UINT32 MessageType)
Definition: Dhcp6Utility.c:824
EFI_STATUS Dhcp6CacheIa(IN DHCP6_INSTANCE *Instance)
EFI_STATUS Dhcp6GenerateIaCb(IN DHCP6_INSTANCE *Instance, IN UINT8 *IaInnerOpt, IN UINT16 IaInnerLen, IN UINT32 T1, IN UINT32 T2)
VOID Dhcp6ParseAddrOption(IN EFI_DHCP6_IA *CurrentIa, IN UINT8 *IaInnerOpt, IN UINT16 IaInnerLen, OUT UINT32 *AddrNum, IN OUT EFI_DHCP6_IA_ADDRESS *AddrBuf)
EFI_DHCP6_IA * Dhcp6DepriveAddress(IN EFI_DHCP6_IA *Ia, IN UINT32 AddressCount, IN EFI_IPv6_ADDRESS *Addresses)
Definition: Dhcp6Utility.c:465
VOID Dhcp6AppendCacheIa(IN DHCP6_INSTANCE *Instance)
VOID EFIAPI Dhcp6OnTransmitted(IN NET_BUF *Wrap, IN UDP_END_POINT *EndPoint, IN EFI_STATUS IoStatus, IN VOID *Context)
Definition: Dhcp6Utility.c:579
EFI_DHCP6_DUID * Dhcp6GenerateClientId(IN EFI_SIMPLE_NETWORK_MODE *Mode)
Definition: Dhcp6Utility.c:33
EFI_STATUS Dhcp6AppendOption(IN OUT EFI_DHCP6_PACKET *Packet, IN OUT UINT8 **PacketCursor, IN UINT16 OptType, IN UINT16 OptLen, IN UINT8 *Data)
Definition: Dhcp6Utility.c:606
VOID Dhcp6CalculateLeaseTime(IN DHCP6_IA_CB *IaCb)
Definition: Dhcp6Utility.c:372
EFI_STATUS Dhcp6AppendETOption(IN OUT EFI_DHCP6_PACKET *Packet, IN OUT UINT8 **PacketCursor, IN DHCP6_INSTANCE *Instance, OUT UINT16 **Elapsed)
Definition: Dhcp6Utility.c:968
UINT8 * Dhcp6SeekOption(IN UINT8 *Buf, IN UINT32 SeekLen, IN UINT16 OptType)
VOID EFIAPI Dhcp6DummyExtFree(IN VOID *Arg)
Definition: Dhcp6Utility.c:562
VOID Dhcp6CleanupModeData(IN OUT EFI_DHCP6_MODE_DATA *ModeData)
Definition: Dhcp6Utility.c:286
EFI_STATUS Dhcp6CheckAddress(IN EFI_DHCP6_IA *Ia, IN UINT32 AddressCount, IN EFI_IPv6_ADDRESS *Addresses)
Definition: Dhcp6Utility.c:416
VOID SetElapsedTime(IN UINT16 *Elapsed, IN DHCP6_INSTANCE *Instance)
UINT32 Dhcp6CalculateExpireTime(IN UINT32 Base, IN BOOLEAN IsFirstRt, IN BOOLEAN NeedSigned)
Definition: Dhcp6Utility.c:321
UINT8 * Dhcp6SeekIaOption(IN UINT8 *Buf, IN UINT32 SeekLen, IN EFI_DHCP6_IA_DESCRIPTOR *IaDesc)
EFI_STATUS Dhcp6GetMappingTimeOut(IN EFI_IP6_CONFIG_PROTOCOL *Ip6Cfg, OUT UINTN *TimeOut)
VOID Dhcp6CleanupConfigData(IN OUT EFI_DHCP6_CONFIG_DATA *CfgData)
Definition: Dhcp6Utility.c:251
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29