iPXE
Udp6.h
Go to the documentation of this file.
1/** @file
2 The EFI UDPv6 (User Datagram Protocol version 6) Protocol Definition, which is built upon
3 the EFI IPv6 Protocol and provides simple packet-oriented services to transmit and receive
4 UDP packets.
5
6 Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8
9 @par Revision Reference:
10 This Protocol is introduced in UEFI Specification 2.2
11
12**/
13
14#pragma once
15
16FILE_LICENCE ( BSD2_PATENT );
17FILE_SECBOOT ( PERMITTED );
18
20
21#define EFI_UDP6_SERVICE_BINDING_PROTOCOL_GUID \
22 { \
23 0x66ed4721, 0x3c98, 0x4d3e, {0x81, 0xe3, 0xd0, 0x3d, 0xd3, 0x9a, 0x72, 0x54 } \
24 }
25
26#define EFI_UDP6_PROTOCOL_GUID \
27 { \
28 0x4f948815, 0xb4b9, 0x43cb, {0x8a, 0x33, 0x90, 0xe0, 0x60, 0xb3, 0x49, 0x55 } \
29 }
30
31///
32/// EFI_UDP6_SERVICE_POINT is deprecated in the UEFI 2.4B and should not be used any more.
33/// The definition in here is only present to provide backwards compatability.
34///
35typedef struct {
36 ///
37 /// The EFI UDPv6 Protocol instance handle that is using this address/port pair.
38 ///
40 ///
41 /// The IPv6 address to which this instance of the EFI UDPv6 Protocol is bound.
42 /// Set to 0::/128, if this instance is used to listen all packets from any
43 /// source address.
44 ///
46 ///
47 /// The port number in host byte order on which the service is listening.
48 ///
50 ///
51 /// The IPv6 address of the remote host. May be 0::/128 if it is not connected
52 /// to any remote host or connected with more than one remote host.
53 ///
55 ///
56 /// The port number in host byte order on which the remote host is
57 /// listening. Maybe zero if it is not connected to any remote host.
58 ///
61
62///
63/// EFI_UDP6_VARIABLE_DATA is deprecated in the UEFI 2.4B and should not be used any more.
64/// The definition in here is only present to provide backwards compatability.
65///
66typedef struct {
67 ///
68 /// The handle of the driver that creates this entry.
69 ///
71 ///
72 /// The number of address/port pairs that follow this data structure.
73 ///
75 ///
76 /// List of address/port pairs that are currently in use.
77 ///
80
82
83///
84/// EFI_UDP6_FRAGMENT_DATA allows multiple receive or transmit buffers to be specified.
85/// The purpose of this structure is to avoid copying the same packet multiple times.
86///
87typedef struct {
88 UINT32 FragmentLength; ///< Length of the fragment data buffer.
89 VOID *FragmentBuffer; ///< Pointer to the fragment data buffer.
91
92///
93/// The EFI_UDP6_SESSION_DATA is used to retrieve the settings when receiving packets or
94/// to override the existing settings (only DestinationAddress and DestinationPort can
95/// be overridden) of this EFI UDPv6 Protocol instance when sending packets.
96///
97typedef struct {
98 ///
99 /// Address from which this packet is sent. This field should not be used when
100 /// sending packets.
101 ///
103 ///
104 /// Port from which this packet is sent. It is in host byte order. This field should
105 /// not be used when sending packets.
106 ///
108 ///
109 /// Address to which this packet is sent. When sending packet, it'll be ignored
110 /// if it is zero.
111 ///
113 ///
114 /// Port to which this packet is sent. When sending packet, it'll be
115 /// ignored if it is zero.
116 ///
119
120typedef struct {
121 ///
122 /// Set to TRUE to accept UDP packets that are sent to any address.
123 ///
125 ///
126 /// Set to TRUE to accept UDP packets that are sent to any port.
127 ///
129 ///
130 /// Set to TRUE to allow this EFI UDPv6 Protocol child instance to open a port number
131 /// that is already being used by another EFI UDPv6 Protocol child instance.
132 ///
134 ///
135 /// TrafficClass field in transmitted IPv6 packets.
136 ///
138 ///
139 /// HopLimit field in transmitted IPv6 packets.
140 ///
142 ///
143 /// The receive timeout value (number of microseconds) to be associated with each
144 /// incoming packet. Zero means do not drop incoming packets.
145 ///
147 ///
148 /// The transmit timeout value (number of microseconds) to be associated with each
149 /// outgoing packet. Zero means do not drop outgoing packets.
150 ///
152 ///
153 /// The station IP address that will be assigned to this EFI UDPv6 Protocol instance.
154 /// The EFI UDPv6 and EFI IPv6 Protocol drivers will only deliver incoming packets
155 /// whose destination matches this IP address exactly. Address 0::/128 is also accepted
156 /// as a special case. Under this situation, underlying IPv6 driver is responsible for
157 /// binding a source address to this EFI IPv6 protocol instance according to source
158 /// address selection algorithm. Only incoming packet from the selected source address
159 /// is delivered. This field can be set and changed only when the EFI IPv6 driver is
160 /// transitioning from the stopped to the started states. If no address is available
161 /// for selecting, the EFI IPv6 Protocol driver will use EFI_IP6_CONFIG_PROTOCOL to
162 /// retrieve the IPv6 address.
164 ///
165 /// The port number to which this EFI UDPv6 Protocol instance is bound. If a client
166 /// of the EFI UDPv6 Protocol does not care about the port number, set StationPort
167 /// to zero. The EFI UDPv6 Protocol driver will assign a random port number to transmitted
168 /// UDP packets. Ignored it if AcceptAnyPort is TRUE.
169 ///
171 ///
172 /// The IP address of remote host to which this EFI UDPv6 Protocol instance is connecting.
173 /// If RemoteAddress is not 0::/128, this EFI UDPv6 Protocol instance will be connected to
174 /// RemoteAddress; i.e., outgoing packets of this EFI UDPv6 Protocol instance will be sent
175 /// to this address by default and only incoming packets from this address will be delivered
176 /// to client. Ignored for incoming filtering if AcceptPromiscuous is TRUE.
178 ///
179 /// The port number of the remote host to which this EFI UDPv6 Protocol instance is connecting.
180 /// If it is not zero, outgoing packets of this EFI UDPv6 Protocol instance will be sent to
181 /// this port number by default and only incoming packets from this port will be delivered
182 /// to client. Ignored if RemoteAddress is 0::/128 and ignored for incoming filtering if
183 /// AcceptPromiscuous is TRUE.
186
187///
188/// The EFI UDPv6 Protocol client must fill this data structure before sending a packet.
189/// The packet may contain multiple buffers that may be not in a continuous memory location.
190///
191typedef struct {
192 ///
193 /// If not NULL, the data that is used to override the transmitting settings.Only the two
194 /// filed UdpSessionData.DestinationAddress and UdpSessionData.DestionPort can be used as
195 /// the transmitting setting filed.
196 ///
198 ///
199 /// Sum of the fragment data length. Must not exceed the maximum UDP packet size.
200 ///
202 ///
203 /// Number of fragments.
204 ///
206 ///
207 /// Array of fragment descriptors.
208 ///
211
212///
213/// EFI_UDP6_RECEIVE_DATA is filled by the EFI UDPv6 Protocol driver when this EFI UDPv6
214/// Protocol instance receives an incoming packet. If there is a waiting token for incoming
215/// packets, the CompletionToken.Packet.RxData field is updated to this incoming packet and
216/// the CompletionToken.Event is signaled. The EFI UDPv6 Protocol client must signal the
217/// RecycleSignal after processing the packet.
218/// FragmentTable could contain multiple buffers that are not in the continuous memory locations.
219/// The EFI UDPv6 Protocol client might need to combine two or more buffers in FragmentTable to
220/// form their own protocol header.
221///
222typedef struct {
223 ///
224 /// Time when the EFI UDPv6 Protocol accepted the packet.
225 ///
227 ///
228 /// Indicates the event to signal when the received data has been processed.
229 ///
231 ///
232 /// The UDP session data including SourceAddress, SourcePort, DestinationAddress,
233 /// and DestinationPort.
234 ///
236 ///
237 /// The sum of the fragment data length.
238 ///
240 ///
241 /// Number of fragments. Maybe zero.
242 ///
244 ///
245 /// Array of fragment descriptors. Maybe zero.
246 ///
249
250///
251/// The EFI_UDP6_COMPLETION_TOKEN structures are used for both transmit and receive operations.
252/// When used for transmitting, the Event and TxData fields must be filled in by the EFI UDPv6
253/// Protocol client. After the transmit operation completes, the Status field is updated by the
254/// EFI UDPv6 Protocol and the Event is signaled.
255/// When used for receiving, only the Event field must be filled in by the EFI UDPv6 Protocol
256/// client. After a packet is received, RxData and Status are filled in by the EFI UDPv6 Protocol
257/// and the Event is signaled.
258///
259typedef struct {
260 ///
261 /// This Event will be signaled after the Status field is updated by the EFI UDPv6 Protocol
262 /// driver. The type of Event must be EVT_NOTIFY_SIGNAL.
263 ///
265 ///
266 /// Will be set to one of the following values:
267 /// - EFI_SUCCESS: The receive or transmit operation completed successfully.
268 /// - EFI_ABORTED: The receive or transmit was aborted.
269 /// - EFI_TIMEOUT: The transmit timeout expired.
270 /// - EFI_NETWORK_UNREACHABLE: The destination network is unreachable. RxData is set to
271 /// NULL in this situation.
272 /// - EFI_HOST_UNREACHABLE: The destination host is unreachable. RxData is set to NULL in
273 /// this situation.
274 /// - EFI_PROTOCOL_UNREACHABLE: The UDP protocol is unsupported in the remote system.
275 /// RxData is set to NULL in this situation.
276 /// - EFI_PORT_UNREACHABLE: No service is listening on the remote port. RxData is set to
277 /// NULL in this situation.
278 /// - EFI_ICMP_ERROR: Some other Internet Control Message Protocol (ICMP) error report was
279 /// received. For example, packets are being sent too fast for the destination to receive them
280 /// and the destination sent an ICMP source quench report. RxData is set to NULL in this situation.
281 /// - EFI_DEVICE_ERROR: An unexpected system or network error occurred.
282 /// - EFI_SECURITY_VIOLATION: The transmit or receive was failed because of IPsec policy check.
283 /// - EFI_NO_MEDIA: There was a media error.
284 ///
286 union {
287 ///
288 /// When this token is used for receiving, RxData is a pointer to EFI_UDP6_RECEIVE_DATA.
289 ///
291 ///
292 /// When this token is used for transmitting, TxData is a pointer to EFI_UDP6_TRANSMIT_DATA.
293 ///
295 } Packet;
297
298/**
299 Read the current operational settings.
300
301 The GetModeData() function copies the current operational settings of this EFI UDPv6 Protocol
302 instance into user-supplied buffers. This function is used optionally to retrieve the operational
303 mode data of underlying networks or drivers.
304
305 @param[in] This Pointer to the EFI_UDP6_PROTOCOL instance.
306 @param[out] Udp6ConfigData The buffer in which the current UDP configuration data is returned.
307 @param[out] Ip6ModeData The buffer in which the current EFI IPv6 Protocol mode data is returned.
308 @param[out] MnpConfigData The buffer in which the current managed network configuration data is
309 returned.
310 @param[out] SnpModeData The buffer in which the simple network mode data is returned.
311
312 @retval EFI_SUCCESS The mode data was read.
313 @retval EFI_NOT_STARTED When Udp6ConfigData is queried, no configuration data is available
314 because this instance has not been started.
315 @retval EFI_INVALID_PARAMETER This is NULL.
316
317**/
318typedef
321 IN EFI_UDP6_PROTOCOL *This,
322 OUT EFI_UDP6_CONFIG_DATA *Udp6ConfigData OPTIONAL,
323 OUT EFI_IP6_MODE_DATA *Ip6ModeData OPTIONAL,
326 );
327
328/**
329 Initializes, changes, or resets the operational parameters for this instance of the EFI UDPv6
330 Protocol.
331
332 The Configure() function is used to do the following:
333 - Initialize and start this instance of the EFI UDPv6 Protocol.
334 - Change the filtering rules and operational parameters.
335 - Reset this instance of the EFI UDPv6 Protocol.
336
337 Until these parameters are initialized, no network traffic can be sent or received by this instance.
338 This instance can be also reset by calling Configure() with UdpConfigData set to NULL.
339 Once reset, the receiving queue and transmitting queue are flushed and no traffic is allowed through
340 this instance.
341
342 With different parameters in UdpConfigData, Configure() can be used to bind this instance to specified
343 port.
344
345 @param[in] This Pointer to the EFI_UDP6_PROTOCOL instance.
346 @param[in] UdpConfigData Pointer to the buffer contained the configuration data.
347
348 @retval EFI_SUCCESS The configuration settings were set, changed, or reset successfully.
349 @retval EFI_NO_MAPPING The underlying IPv6 driver was responsible for choosing a source
350 address for this instance, but no source address was available for use.
351 @retval EFI_INVALID_PARAMETER One or more following conditions are TRUE:
352 - This is NULL.
353 - UdpConfigData.StationAddress neither zero nor one of the configured IP
354 addresses in the underlying IPv6 driver.
355 - UdpConfigData.RemoteAddress is not a valid unicast IPv6 address if it
356 is not zero.
357 @retval EFI_ALREADY_STARTED The EFI UDPv6 Protocol instance is already started/configured and must be
358 stopped/reset before it can be reconfigured. Only TrafficClass, HopLimit,
359 ReceiveTimeout, and TransmitTimeout can be reconfigured without stopping
360 the current instance of the EFI UDPv6 Protocol.
361 @retval EFI_ACCESS_DENIED UdpConfigData.AllowDuplicatePort is FALSE and UdpConfigData.StationPort
362 is already used by other instance.
363 @retval EFI_OUT_OF_RESOURCES The EFI UDPv6 Protocol driver cannot allocate memory for this EFI UDPv6
364 Protocol instance.
365 @retval EFI_DEVICE_ERROR An unexpected network or system error occurred and this instance was not
366 opened.
367
368**/
369typedef
372 IN EFI_UDP6_PROTOCOL *This,
373 IN EFI_UDP6_CONFIG_DATA *UdpConfigData OPTIONAL
374 );
375
376/**
377 Joins and leaves multicast groups.
378
379 The Groups() function is used to join or leave one or more multicast group.
380 If the JoinFlag is FALSE and the MulticastAddress is NULL, then all currently joined groups are left.
381
382 @param[in] This Pointer to the EFI_UDP6_PROTOCOL instance.
383 @param[in] JoinFlag Set to TRUE to join a multicast group. Set to FALSE to leave one
384 or all multicast groups.
385 @param[in] MulticastAddress Pointer to multicast group address to join or leave.
386
387 @retval EFI_SUCCESS The operation completed successfully.
388 @retval EFI_NOT_STARTED The EFI UDPv6 Protocol instance has not been started.
389 @retval EFI_OUT_OF_RESOURCES Could not allocate resources to join the group.
390 @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
391 - This is NULL.
392 - JoinFlag is TRUE and MulticastAddress is NULL.
393 - JoinFlag is TRUE and *MulticastAddress is not a valid multicast address.
394 @retval EFI_ALREADY_STARTED The group address is already in the group table (when JoinFlag is TRUE).
395 @retval EFI_NOT_FOUND The group address is not in the group table (when JoinFlag is FALSE).
396 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
397
398**/
399typedef
402 IN EFI_UDP6_PROTOCOL *This,
403 IN BOOLEAN JoinFlag,
404 IN EFI_IPv6_ADDRESS *MulticastAddress OPTIONAL
405 );
406
407/**
408 Queues outgoing data packets into the transmit queue.
409
410 The Transmit() function places a sending request to this instance of the EFI UDPv6 Protocol,
411 alongside the transmit data that was filled by the user. Whenever the packet in the token is
412 sent out or some errors occur, the Token.Event will be signaled and Token.Status is updated.
413 Providing a proper notification function and context for the event will enable the user to
414 receive the notification and transmitting status.
415
416 @param[in] This Pointer to the EFI_UDP6_PROTOCOL instance.
417 @param[in] Token Pointer to the completion token that will be placed into the
418 transmit queue.
419
420 @retval EFI_SUCCESS The data has been queued for transmission.
421 @retval EFI_NOT_STARTED This EFI UDPv6 Protocol instance has not been started.
422 @retval EFI_NO_MAPPING The underlying IPv6 driver was responsible for choosing a source
423 address for this instance, but no source address was available
424 for use.
425 @retval EFI_INVALID_PARAMETER One or more of the following are TRUE:
426 - This is NULL.
427 - Token is NULL.
428 - Token.Event is NULL.
429 - Token.Packet.TxData is NULL.
430 - Token.Packet.TxData.FragmentCount is zero.
431 - Token.Packet.TxData.DataLength is not equal to the sum of fragment
432 lengths.
433 - One or more of the Token.Packet.TxData.FragmentTable[].FragmentLength
434 fields is zero.
435 - One or more of the Token.Packet.TxData.FragmentTable[].FragmentBuffer
436 fields is NULL.
437 - Token.Packet.TxData.UdpSessionData.DestinationAddress is not zero
438 and is not valid unicast Ipv6 address if UdpSessionData is not NULL.
439 - Token.Packet.TxData.UdpSessionData is NULL and this instance's
440 UdpConfigData.RemoteAddress is unspecified.
441 - Token.Packet.TxData.UdpSessionData.DestinationAddress is non-zero
442 when DestinationAddress is configured as non-zero when doing Configure()
443 for this EFI Udp6 protocol instance.
444 - Token.Packet.TxData.UdpSesionData.DestinationAddress is zero when
445 DestinationAddress is unspecified when doing Configure() for this
446 EFI Udp6 protocol instance.
447 @retval EFI_ACCESS_DENIED The transmit completion token with the same Token.Event was already
448 in the transmit queue.
449 @retval EFI_NOT_READY The completion token could not be queued because the transmit queue
450 is full.
451 @retval EFI_OUT_OF_RESOURCES Could not queue the transmit data.
452 @retval EFI_NOT_FOUND There is no route to the destination network or address.
453 @retval EFI_BAD_BUFFER_SIZE The data length is greater than the maximum UDP packet size.
454
455**/
456typedef
459 IN EFI_UDP6_PROTOCOL *This,
461 );
462
463/**
464 Places an asynchronous receive request into the receiving queue.
465
466 The Receive() function places a completion token into the receive packet queue. This function is
467 always asynchronous.
468 The caller must fill in the Token.Event field in the completion token, and this field cannot be
469 NULL. When the receive operation completes, the EFI UDPv6 Protocol driver updates the Token.Status
470 and Token.Packet.RxData fields and the Token.Event is signaled.
471 Providing a proper notification function and context for the event will enable the user to receive
472 the notification and receiving status. That notification function is guaranteed to not be re-entered.
473
474 @param[in] This Pointer to the EFI_UDP6_PROTOCOL instance.
475 @param[in] Token Pointer to a token that is associated with the receive data descriptor.
476
477 @retval EFI_SUCCESS The receive completion token was cached.
478 @retval EFI_NOT_STARTED This EFI UDPv6 Protocol instance has not been started.
479 @retval EFI_NO_MAPPING The underlying IPv6 driver was responsible for choosing a source
480 address for this instance, but no source address was available
481 for use.
482 @retval EFI_INVALID_PARAMETER One or more of the following is TRUE:
483 - This is NULL.
484 - Token is NULL.
485 - Token.Event is NULL.
486 @retval EFI_OUT_OF_RESOURCES The receive completion token could not be queued due to a lack of system
487 resources (usually memory).
488 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The EFI UDPv6 Protocol
489 instance has been reset to startup defaults.
490 @retval EFI_ACCESS_DENIED A receive completion token with the same Token.Event was already in
491 the receive queue.
492 @retval EFI_NOT_READY The receive request could not be queued because the receive queue is full.
493
494**/
495typedef
498 IN EFI_UDP6_PROTOCOL *This,
500 );
501
502/**
503 Aborts an asynchronous transmit or receive request.
504
505 The Cancel() function is used to abort a pending transmit or receive request. If the token is in the
506 transmit or receive request queues, after calling this function, Token.Status will be set to
507 EFI_ABORTED and then Token.Event will be signaled. If the token is not in one of the queues,
508 which usually means that the asynchronous operation has completed, this function will not signal the
509 token and EFI_NOT_FOUND is returned.
510
511 @param[in] This Pointer to the EFI_UDP6_PROTOCOL instance.
512 @param[in] Token Pointer to a token that has been issued by EFI_UDP6_PROTOCOL.Transmit()
513 or EFI_UDP6_PROTOCOL.Receive().If NULL, all pending tokens are aborted.
514
515 @retval EFI_SUCCESS The asynchronous I/O request was aborted and Token.Event was signaled.
516 When Token is NULL, all pending requests are aborted and their events
517 are signaled.
518 @retval EFI_INVALID_PARAMETER This is NULL.
519 @retval EFI_NOT_STARTED This instance has not been started.
520 @retval EFI_NOT_FOUND When Token is not NULL, the asynchronous I/O request was not found in
521 the transmit or receive queue. It has either completed or was not issued
522 by Transmit() and Receive().
523
524**/
525typedef
528 IN EFI_UDP6_PROTOCOL *This,
530 );
531
532/**
533 Polls for incoming data packets and processes outgoing data packets.
534
535 The Poll() function can be used by network drivers and applications to increase the rate that data
536 packets are moved between the communications device and the transmit and receive queues.
537 In some systems, the periodic timer event in the managed network driver may not poll the underlying
538 communications device fast enough to transmit and/or receive all data packets without missing incoming
539 packets or dropping outgoing packets. Drivers and applications that are experiencing packet loss should
540 try calling the Poll() function more often.
541
542 @param[in] This Pointer to the EFI_UDP6_PROTOCOL instance.
543
544 @retval EFI_SUCCESS Incoming or outgoing data was processed.
545 @retval EFI_INVALID_PARAMETER This is NULL.
546 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
547 @retval EFI_TIMEOUT Data was dropped out of the transmit and/or receive queue.
548 Consider increasing the polling rate.
549
550**/
551typedef
555 );
556
557///
558/// The EFI_UDP6_PROTOCOL defines an EFI UDPv6 Protocol session that can be used by any network drivers,
559/// applications, or daemons to transmit or receive UDP packets. This protocol instance can either be
560/// bound to a specified port as a service or connected to some remote peer as an active client.
561/// Each instance has its own settings, such as group table, that are independent from each other.
562///
572
unsigned short UINT16
2-byte unsigned value.
unsigned char BOOLEAN
Logical Boolean.
#define EFIAPI
unsigned char UINT8
1-byte unsigned value.
unsigned int UINT32
4-byte unsigned value.
#define VOID
Undeclared type.
Definition Base.h:271
#define OPTIONAL
Passing the datum to the function is optional, and a NULL is passed if the value is not supplied.
Definition Base.h:292
This file defines the EFI IPv6 (Internet Protocol version 6) Protocol interface.
EFI_STATUS(EFIAPI * EFI_UDP6_GET_MODE_DATA)(IN EFI_UDP6_PROTOCOL *This, OUT EFI_UDP6_CONFIG_DATA *Udp6ConfigData OPTIONAL, OUT EFI_IP6_MODE_DATA *Ip6ModeData OPTIONAL, OUT EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData OPTIONAL, OUT EFI_SIMPLE_NETWORK_MODE *SnpModeData OPTIONAL)
Read the current operational settings.
Definition Udp6.h:320
EFI_STATUS(EFIAPI * EFI_UDP6_CONFIGURE)(IN EFI_UDP6_PROTOCOL *This, IN EFI_UDP6_CONFIG_DATA *UdpConfigData OPTIONAL)
Initializes, changes, or resets the operational parameters for this instance of the EFI UDPv6 Protoco...
Definition Udp6.h:371
EFI_STATUS(EFIAPI * EFI_UDP6_GROUPS)(IN EFI_UDP6_PROTOCOL *This, IN BOOLEAN JoinFlag, IN EFI_IPv6_ADDRESS *MulticastAddress OPTIONAL)
Joins and leaves multicast groups.
Definition Udp6.h:401
EFI_GUID gEfiUdp6ProtocolGuid
EFI_GUID gEfiUdp6ServiceBindingProtocolGuid
EFI_STATUS(EFIAPI * EFI_UDP6_RECEIVE)(IN EFI_UDP6_PROTOCOL *This, IN EFI_UDP6_COMPLETION_TOKEN *Token)
Places an asynchronous receive request into the receiving queue.
Definition Udp6.h:497
struct _EFI_UDP6_PROTOCOL EFI_UDP6_PROTOCOL
Definition Udp6.h:81
EFI_STATUS(EFIAPI * EFI_UDP6_POLL)(IN EFI_UDP6_PROTOCOL *This)
Polls for incoming data packets and processes outgoing data packets.
Definition Udp6.h:553
EFI_STATUS(EFIAPI * EFI_UDP6_TRANSMIT)(IN EFI_UDP6_PROTOCOL *This, IN EFI_UDP6_COMPLETION_TOKEN *Token)
Queues outgoing data packets into the transmit queue.
Definition Udp6.h:458
EFI_STATUS(EFIAPI * EFI_UDP6_CANCEL)(IN EFI_UDP6_PROTOCOL *This, IN EFI_UDP6_COMPLETION_TOKEN *Token OPTIONAL)
Aborts an asynchronous transmit or receive request.
Definition Udp6.h:527
IPv6_ADDRESS EFI_IPv6_ADDRESS
16-byte buffer.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:921
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:951
#define EFI_HANDLE
Definition efi.h:53
#define EFI_EVENT
Definition efi.h:54
#define IN
Definition mlx_utils.h:28
#define OUT
Definition mlx_utils.h:29
EFI_IP6_MODE_DATA.
Definition Ip6.h:307
EFI Time Abstraction: Year: 1900 - 9999 Month: 1 - 12 Day: 1 - 31 Hour: 0 - 23 Minute: 0 - 59 Second:...
The EFI_UDP6_COMPLETION_TOKEN structures are used for both transmit and receive operations.
Definition Udp6.h:259
EFI_UDP6_RECEIVE_DATA * RxData
When this token is used for receiving, RxData is a pointer to EFI_UDP6_RECEIVE_DATA.
Definition Udp6.h:290
EFI_STATUS Status
Will be set to one of the following values:
Definition Udp6.h:285
EFI_UDP6_TRANSMIT_DATA * TxData
When this token is used for transmitting, TxData is a pointer to EFI_UDP6_TRANSMIT_DATA.
Definition Udp6.h:294
EFI_EVENT Event
This Event will be signaled after the Status field is updated by the EFI UDPv6 Protocol driver.
Definition Udp6.h:264
UINT16 StationPort
The port number to which this EFI UDPv6 Protocol instance is bound.
Definition Udp6.h:170
UINT8 HopLimit
HopLimit field in transmitted IPv6 packets.
Definition Udp6.h:141
BOOLEAN AcceptAnyPort
Set to TRUE to accept UDP packets that are sent to any port.
Definition Udp6.h:128
UINT16 RemotePort
The port number of the remote host to which this EFI UDPv6 Protocol instance is connecting.
Definition Udp6.h:184
BOOLEAN AcceptPromiscuous
Set to TRUE to accept UDP packets that are sent to any address.
Definition Udp6.h:124
BOOLEAN AllowDuplicatePort
Set to TRUE to allow this EFI UDPv6 Protocol child instance to open a port number that is already bei...
Definition Udp6.h:133
EFI_IPv6_ADDRESS RemoteAddress
The IP address of remote host to which this EFI UDPv6 Protocol instance is connecting.
Definition Udp6.h:177
UINT32 ReceiveTimeout
The receive timeout value (number of microseconds) to be associated with each incoming packet.
Definition Udp6.h:146
UINT32 TransmitTimeout
The transmit timeout value (number of microseconds) to be associated with each outgoing packet.
Definition Udp6.h:151
UINT8 TrafficClass
TrafficClass field in transmitted IPv6 packets.
Definition Udp6.h:137
EFI_IPv6_ADDRESS StationAddress
The station IP address that will be assigned to this EFI UDPv6 Protocol instance.
Definition Udp6.h:163
EFI_UDP6_FRAGMENT_DATA allows multiple receive or transmit buffers to be specified.
Definition Udp6.h:87
UINT32 FragmentLength
Length of the fragment data buffer.
Definition Udp6.h:88
VOID * FragmentBuffer
Pointer to the fragment data buffer.
Definition Udp6.h:89
EFI_UDP6_RECEIVE_DATA is filled by the EFI UDPv6 Protocol driver when this EFI UDPv6 Protocol instanc...
Definition Udp6.h:222
UINT32 DataLength
The sum of the fragment data length.
Definition Udp6.h:239
EFI_TIME TimeStamp
Time when the EFI UDPv6 Protocol accepted the packet.
Definition Udp6.h:226
EFI_UDP6_FRAGMENT_DATA FragmentTable[1]
Array of fragment descriptors.
Definition Udp6.h:247
EFI_UDP6_SESSION_DATA UdpSession
The UDP session data including SourceAddress, SourcePort, DestinationAddress, and DestinationPort.
Definition Udp6.h:235
EFI_EVENT RecycleSignal
Indicates the event to signal when the received data has been processed.
Definition Udp6.h:230
UINT32 FragmentCount
Number of fragments.
Definition Udp6.h:243
EFI_UDP6_SERVICE_POINT is deprecated in the UEFI 2.4B and should not be used any more.
Definition Udp6.h:35
UINT16 RemotePort
The port number in host byte order on which the remote host is listening.
Definition Udp6.h:59
EFI_IPv6_ADDRESS RemoteAddress
The IPv6 address of the remote host.
Definition Udp6.h:54
EFI_IPv6_ADDRESS LocalAddress
The IPv6 address to which this instance of the EFI UDPv6 Protocol is bound.
Definition Udp6.h:45
EFI_HANDLE InstanceHandle
The EFI UDPv6 Protocol instance handle that is using this address/port pair.
Definition Udp6.h:39
UINT16 LocalPort
The port number in host byte order on which the service is listening.
Definition Udp6.h:49
The EFI_UDP6_SESSION_DATA is used to retrieve the settings when receiving packets or to override the ...
Definition Udp6.h:97
EFI_IPv6_ADDRESS DestinationAddress
Address to which this packet is sent.
Definition Udp6.h:112
UINT16 SourcePort
Port from which this packet is sent.
Definition Udp6.h:107
EFI_IPv6_ADDRESS SourceAddress
Address from which this packet is sent.
Definition Udp6.h:102
UINT16 DestinationPort
Port to which this packet is sent.
Definition Udp6.h:117
The EFI UDPv6 Protocol client must fill this data structure before sending a packet.
Definition Udp6.h:191
EFI_UDP6_FRAGMENT_DATA FragmentTable[1]
Array of fragment descriptors.
Definition Udp6.h:209
UINT32 FragmentCount
Number of fragments.
Definition Udp6.h:205
UINT32 DataLength
Sum of the fragment data length.
Definition Udp6.h:201
EFI_UDP6_SESSION_DATA * UdpSessionData
If not NULL, the data that is used to override the transmitting settings.Only the two filed UdpSessio...
Definition Udp6.h:197
EFI_UDP6_VARIABLE_DATA is deprecated in the UEFI 2.4B and should not be used any more.
Definition Udp6.h:66
EFI_UDP6_SERVICE_POINT Services[1]
List of address/port pairs that are currently in use.
Definition Udp6.h:78
EFI_HANDLE DriverHandle
The handle of the driver that creates this entry.
Definition Udp6.h:70
UINT32 ServiceCount
The number of address/port pairs that follow this data structure.
Definition Udp6.h:74
The EFI_UDP6_PROTOCOL defines an EFI UDPv6 Protocol session that can be used by any network drivers,...
Definition Udp6.h:563
EFI_UDP6_CONFIGURE Configure
Definition Udp6.h:565
EFI_UDP6_RECEIVE Receive
Definition Udp6.h:568
EFI_UDP6_GET_MODE_DATA GetModeData
Definition Udp6.h:564
EFI_UDP6_POLL Poll
Definition Udp6.h:570
EFI_UDP6_GROUPS Groups
Definition Udp6.h:566
EFI_UDP6_TRANSMIT Transmit
Definition Udp6.h:567
EFI_UDP6_CANCEL Cancel
Definition Udp6.h:569