iPXE
Ip4.h
Go to the documentation of this file.
1/** @file
2 This file defines the EFI IPv4 (Internet Protocol version 4)
3 Protocol interface. It is split into the following three main
4 sections:
5 - EFI IPv4 Service Binding Protocol
6 - EFI IPv4 Variable (deprecated in UEFI 2.4B)
7 - EFI IPv4 Protocol.
8 The EFI IPv4 Protocol provides basic network IPv4 packet I/O services,
9 which includes support foR a subset of the Internet Control Message
10 Protocol (ICMP) and may include support for the Internet Group Management
11 Protocol (IGMP).
12
13Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
14SPDX-License-Identifier: BSD-2-Clause-Patent
15
16 @par Revision Reference:
17 This Protocol is introduced in UEFI Specification 2.0.
18
19**/
20
21#ifndef __EFI_IP4_PROTOCOL_H__
22#define __EFI_IP4_PROTOCOL_H__
23
24FILE_LICENCE ( BSD2_PATENT );
25FILE_SECBOOT ( PERMITTED );
26
28
29#define EFI_IP4_SERVICE_BINDING_PROTOCOL_GUID \
30 { \
31 0xc51711e7, 0xb4bf, 0x404a, {0xbf, 0xb8, 0x0a, 0x04, 0x8e, 0xf1, 0xff, 0xe4 } \
32 }
33
34#define EFI_IP4_PROTOCOL_GUID \
35 { \
36 0x41d94cd2, 0x35b6, 0x455a, {0x82, 0x58, 0xd4, 0xe5, 0x13, 0x34, 0xaa, 0xdd } \
37 }
38
40
41///
42/// EFI_IP4_ADDRESS_PAIR is deprecated in the UEFI 2.4B and should not be used any more.
43/// The definition in here is only present to provide backwards compatability.
44///
50
51///
52/// EFI_IP4_VARIABLE_DATA is deprecated in the UEFI 2.4B and should not be used any more.
53/// The definition in here is only present to provide backwards compatability.
54///
60
61typedef struct {
62 ///
63 /// The default IPv4 protocol packets to send and receive. Ignored
64 /// when AcceptPromiscuous is TRUE.
65 ///
67 ///
68 /// Set to TRUE to receive all IPv4 packets that get through the receive filters.
69 /// Set to FALSE to receive only the DefaultProtocol IPv4
70 /// packets that get through the receive filters.
71 ///
73 ///
74 /// Set to TRUE to receive ICMP error report packets. Ignored when
75 /// AcceptPromiscuous or AcceptAnyProtocol is TRUE.
76 ///
78 ///
79 /// Set to TRUE to receive broadcast IPv4 packets. Ignored when
80 /// AcceptPromiscuous is TRUE.
81 /// Set to FALSE to stop receiving broadcast IPv4 packets.
82 ///
84 ///
85 /// Set to TRUE to receive all IPv4 packets that are sent to any
86 /// hardware address or any protocol address.
87 /// Set to FALSE to stop receiving all promiscuous IPv4 packets
88 ///
90 ///
91 /// Set to TRUE to use the default IPv4 address and default routing table.
92 ///
94 ///
95 /// The station IPv4 address that will be assigned to this EFI IPv4Protocol instance.
96 ///
98 ///
99 /// The subnet address mask that is associated with the station address.
100 ///
102 ///
103 /// TypeOfService field in transmitted IPv4 packets.
104 ///
106 ///
107 /// TimeToLive field in transmitted IPv4 packets.
108 ///
110 ///
111 /// State of the DoNotFragment bit in transmitted IPv4 packets.
112 ///
114 ///
115 /// Set to TRUE to send and receive unformatted packets. The other
116 /// IPv4 receive filters are still applied. Fragmentation is disabled for RawData mode.
117 ///
119 ///
120 /// The timer timeout value (number of microseconds) for the
121 /// receive timeout event to be associated with each assembled
122 /// packet. Zero means do not drop assembled packets.
123 ///
125 ///
126 /// The timer timeout value (number of microseconds) for the
127 /// transmit timeout event to be associated with each outgoing
128 /// packet. Zero means do not drop outgoing packets.
129 ///
132
138
143
144typedef struct {
145 ///
146 /// Set to TRUE after this EFI IPv4 Protocol instance has been successfully configured.
147 ///
149 ///
150 /// The maximum packet size, in bytes, of the packet which the upper layer driver could feed.
151 ///
153 ///
154 /// Current configuration settings.
155 ///
157 ///
158 /// Set to TRUE when the EFI IPv4 Protocol instance has a station address and subnet mask.
159 ///
161 ///
162 /// Number of joined multicast groups.
163 ///
165 ///
166 /// List of joined multicast group addresses.
167 ///
169 ///
170 /// Number of entries in the routing table.
171 ///
173 ///
174 /// Routing table entries.
175 ///
177 ///
178 /// Number of entries in the supported ICMP types list.
179 ///
181 ///
182 /// Array of ICMP types and codes that are supported by this EFI IPv4 Protocol driver
183 ///
186
187#pragma pack(1)
188
202#pragma pack()
203
208
220
229
239
240typedef struct {
241 ///
242 /// This Event will be signaled after the Status field is updated
243 /// by the EFI IPv4 Protocol driver. The type of Event must be
244 /// EFI_NOTIFY_SIGNAL. The Task Priority Level (TPL) of
245 /// Event must be lower than or equal to TPL_CALLBACK.
246 ///
248 ///
249 /// The status that is returned to the caller at the end of the operation
250 /// to indicate whether this operation completed successfully.
251 ///
253 union {
254 ///
255 /// When this token is used for receiving, RxData is a pointer to the EFI_IP4_RECEIVE_DATA.
256 ///
258 ///
259 /// When this token is used for transmitting, TxData is a pointer to the EFI_IP4_TRANSMIT_DATA.
260 ///
262 } Packet;
264
265/**
266 Gets the current operational settings for this instance of the EFI IPv4 Protocol driver.
267
268 The GetModeData() function returns the current operational mode data for this
269 driver instance. The data fields in EFI_IP4_MODE_DATA are read only. This
270 function is used optionally to retrieve the operational mode data of underlying
271 networks or drivers.
272
273 @param This The pointer to the EFI_IP4_PROTOCOL instance.
274 @param Ip4ModeData The pointer to the EFI IPv4 Protocol mode data structure.
275 @param MnpConfigData The pointer to the managed network configuration data structure.
276 @param SnpModeData The pointer to the simple network mode data structure.
277
278 @retval EFI_SUCCESS The operation completed successfully.
279 @retval EFI_INVALID_PARAMETER This is NULL.
280 @retval EFI_OUT_OF_RESOURCES The required mode data could not be allocated.
281
282**/
283typedef
287 OUT EFI_IP4_MODE_DATA *Ip4ModeData OPTIONAL,
290 );
291
292/**
293 Assigns an IPv4 address and subnet mask to this EFI IPv4 Protocol driver instance.
294
295 The Configure() function is used to set, change, or reset the operational
296 parameters and filter settings for this EFI IPv4 Protocol instance. Until these
297 parameters have been set, no network traffic can be sent or received by this
298 instance. Once the parameters have been reset (by calling this function with
299 IpConfigData set to NULL), no more traffic can be sent or received until these
300 parameters have been set again. Each EFI IPv4 Protocol instance can be started
301 and stopped independently of each other by enabling or disabling their receive
302 filter settings with the Configure() function.
303
304 When IpConfigData.UseDefaultAddress is set to FALSE, the new station address will
305 be appended as an alias address into the addresses list in the EFI IPv4 Protocol
306 driver. While set to TRUE, Configure() will trigger the EFI_IP4_CONFIG_PROTOCOL
307 to retrieve the default IPv4 address if it is not available yet. Clients could
308 frequently call GetModeData() to check the status to ensure that the default IPv4
309 address is ready.
310
311 If operational parameters are reset or changed, any pending transmit and receive
312 requests will be cancelled. Their completion token status will be set to EFI_ABORTED
313 and their events will be signaled.
314
315 @param This The pointer to the EFI_IP4_PROTOCOL instance.
316 @param IpConfigData The pointer to the EFI IPv4 Protocol configuration data structure.
317
318 @retval EFI_SUCCESS The driver instance was successfully opened.
319 @retval EFI_NO_MAPPING When using the default address, configuration (DHCP, BOOTP,
320 RARP, etc.) is not finished yet.
321 @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
322 This is NULL.
323 IpConfigData.StationAddress is not a unicast IPv4 address.
324 IpConfigData.SubnetMask is not a valid IPv4 subnet
325 @retval EFI_UNSUPPORTED One or more of the following conditions is TRUE:
326 A configuration protocol (DHCP, BOOTP, RARP, etc.) could
327 not be located when clients choose to use the default IPv4
328 address. This EFI IPv4 Protocol implementation does not
329 support this requested filter or timeout setting.
330 @retval EFI_OUT_OF_RESOURCES The EFI IPv4 Protocol driver instance data could not be allocated.
331 @retval EFI_ALREADY_STARTED The interface is already open and must be stopped before the
332 IPv4 address or subnet mask can be changed. The interface must
333 also be stopped when switching to/from raw packet mode.
334 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred. The EFI IPv4
335 Protocol driver instance is not opened.
336
337**/
338typedef
341 IN EFI_IP4_PROTOCOL *This,
342 IN EFI_IP4_CONFIG_DATA *IpConfigData OPTIONAL
343 );
344
345/**
346 Joins and leaves multicast groups.
347
348 The Groups() function is used to join and leave multicast group sessions. Joining
349 a group will enable reception of matching multicast packets. Leaving a group will
350 disable the multicast packet reception.
351
352 If JoinFlag is FALSE and GroupAddress is NULL, all joined groups will be left.
353
354 @param This The pointer to the EFI_IP4_PROTOCOL instance.
355 @param JoinFlag Set to TRUE to join the multicast group session and FALSE to leave.
356 @param GroupAddress The pointer to the IPv4 multicast address.
357
358 @retval EFI_SUCCESS The operation completed successfully.
359 @retval EFI_INVALID_PARAMETER One or more of the following is TRUE:
360 - This is NULL.
361 - JoinFlag is TRUE and GroupAddress is NULL.
362 - GroupAddress is not NULL and *GroupAddress is
363 not a multicast IPv4 address.
364 @retval EFI_NOT_STARTED This instance has not been started.
365 @retval EFI_NO_MAPPING When using the default address, configuration (DHCP, BOOTP,
366 RARP, etc.) is not finished yet.
367 @retval EFI_OUT_OF_RESOURCES System resources could not be allocated.
368 @retval EFI_UNSUPPORTED This EFI IPv4 Protocol implementation does not support multicast groups.
369 @retval EFI_ALREADY_STARTED The group address is already in the group table (when
370 JoinFlag is TRUE).
371 @retval EFI_NOT_FOUND The group address is not in the group table (when JoinFlag is FALSE).
372 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
373
374**/
375typedef
378 IN EFI_IP4_PROTOCOL *This,
379 IN BOOLEAN JoinFlag,
380 IN EFI_IPv4_ADDRESS *GroupAddress OPTIONAL
381 );
382
383/**
384 Adds and deletes routing table entries.
385
386 The Routes() function adds a route to or deletes a route from the routing table.
387
388 Routes are determined by comparing the SubnetAddress with the destination IPv4
389 address arithmetically AND-ed with the SubnetMask. The gateway address must be
390 on the same subnet as the configured station address.
391
392 The default route is added with SubnetAddress and SubnetMask both set to 0.0.0.0.
393 The default route matches all destination IPv4 addresses that do not match any
394 other routes.
395
396 A GatewayAddress that is zero is a nonroute. Packets are sent to the destination
397 IP address if it can be found in the ARP cache or on the local subnet. One automatic
398 nonroute entry will be inserted into the routing table for outgoing packets that
399 are addressed to a local subnet (gateway address of 0.0.0.0).
400
401 Each EFI IPv4 Protocol instance has its own independent routing table. Those EFI
402 IPv4 Protocol instances that use the default IPv4 address will also have copies
403 of the routing table that was provided by the EFI_IP4_CONFIG_PROTOCOL, and these
404 copies will be updated whenever the EIF IPv4 Protocol driver reconfigures its
405 instances. As a result, client modification to the routing table will be lost.
406
407 @param This The pointer to the EFI_IP4_PROTOCOL instance.
408 @param DeleteRoute Set to TRUE to delete this route from the routing table. Set to
409 FALSE to add this route to the routing table. SubnetAddress
410 and SubnetMask are used as the key to each route entry.
411 @param SubnetAddress The address of the subnet that needs to be routed.
412 @param SubnetMask The subnet mask of SubnetAddress.
413 @param GatewayAddress The unicast gateway IPv4 address for this route.
414
415 @retval EFI_SUCCESS The operation completed successfully.
416 @retval EFI_NOT_STARTED The driver instance has not been started.
417 @retval EFI_NO_MAPPING When using the default address, configuration (DHCP, BOOTP,
418 RARP, etc.) is not finished yet.
419 @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
420 - This is NULL.
421 - SubnetAddress is NULL.
422 - SubnetMask is NULL.
423 - GatewayAddress is NULL.
424 - *SubnetAddress is not a valid subnet address.
425 - *SubnetMask is not a valid subnet mask.
426 - *GatewayAddress is not a valid unicast IPv4 address.
427 @retval EFI_OUT_OF_RESOURCES Could not add the entry to the routing table.
428 @retval EFI_NOT_FOUND This route is not in the routing table (when DeleteRoute is TRUE).
429 @retval EFI_ACCESS_DENIED The route is already defined in the routing table (when
430 DeleteRoute is FALSE).
431
432**/
433typedef
436 IN EFI_IP4_PROTOCOL *This,
437 IN BOOLEAN DeleteRoute,
438 IN EFI_IPv4_ADDRESS *SubnetAddress,
439 IN EFI_IPv4_ADDRESS *SubnetMask,
440 IN EFI_IPv4_ADDRESS *GatewayAddress
441 );
442
443/**
444 Places outgoing data packets into the transmit queue.
445
446 The Transmit() function places a sending request in the transmit queue of this
447 EFI IPv4 Protocol instance. Whenever the packet in the token is sent out or some
448 errors occur, the event in the token will be signaled and the status is updated.
449
450 @param This The pointer to the EFI_IP4_PROTOCOL instance.
451 @param Token The pointer to the transmit token.
452
453 @retval EFI_SUCCESS The data has been queued for transmission.
454 @retval EFI_NOT_STARTED This instance has not been started.
455 @retval EFI_NO_MAPPING When using the default address, configuration (DHCP, BOOTP,
456 RARP, etc.) is not finished yet.
457 @retval EFI_INVALID_PARAMETER One or more pameters are invalid.
458 @retval EFI_ACCESS_DENIED The transmit completion token with the same Token.Event
459 was already in the transmit queue.
460 @retval EFI_NOT_READY The completion token could not be queued because the transmit
461 queue is full.
462 @retval EFI_NOT_FOUND Not route is found to destination address.
463 @retval EFI_OUT_OF_RESOURCES Could not queue the transmit data.
464 @retval EFI_BUFFER_TOO_SMALL Token.Packet.TxData.TotalDataLength is too
465 short to transmit.
466 @retval EFI_BAD_BUFFER_SIZE The length of the IPv4 header + option length + total data length is
467 greater than MTU (or greater than the maximum packet size if
468 Token.Packet.TxData.OverrideData.
469 DoNotFragment is TRUE.)
470
471**/
472typedef
475 IN EFI_IP4_PROTOCOL *This,
477 );
478
479/**
480 Places a receiving request into the receiving queue.
481
482 The Receive() function places a completion token into the receive packet queue.
483 This function is always asynchronous.
484
485 The Token.Event field in the completion token must be filled in by the caller
486 and cannot be NULL. When the receive operation completes, the EFI IPv4 Protocol
487 driver updates the Token.Status and Token.Packet.RxData fields and the Token.Event
488 is signaled.
489
490 @param This The pointer to the EFI_IP4_PROTOCOL instance.
491 @param Token The pointer to a token that is associated with the receive data descriptor.
492
493 @retval EFI_SUCCESS The receive completion token was cached.
494 @retval EFI_NOT_STARTED This EFI IPv4 Protocol instance has not been started.
495 @retval EFI_NO_MAPPING When using the default address, configuration (DHCP, BOOTP, RARP, etc.)
496 is not finished yet.
497 @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:
498 - This is NULL.
499 - Token is NULL.
500 - Token.Event is NULL.
501 @retval EFI_OUT_OF_RESOURCES The receive completion token could not be queued due to a lack of system
502 resources (usually memory).
503 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
504 The EFI IPv4 Protocol instance has been reset to startup defaults.
505 @retval EFI_ACCESS_DENIED The receive completion token with the same Token.Event was already
506 in the receive queue.
507 @retval EFI_NOT_READY The receive request could not be queued because the receive queue is full.
508 @retval EFI_ICMP_ERROR An ICMP error packet was received.
509
510**/
511typedef
514 IN EFI_IP4_PROTOCOL *This,
516 );
517
518/**
519 Abort an asynchronous transmit or receive request.
520
521 The Cancel() function is used to abort a pending transmit or receive request.
522 If the token is in the transmit or receive request queues, after calling this
523 function, Token->Status will be set to EFI_ABORTED and then Token->Event will
524 be signaled. If the token is not in one of the queues, which usually means the
525 asynchronous operation has completed, this function will not signal the token
526 and EFI_NOT_FOUND is returned.
527
528 @param This The pointer to the EFI_IP4_PROTOCOL instance.
529 @param Token The pointer to a token that has been issued by
530 EFI_IP4_PROTOCOL.Transmit() or
531 EFI_IP4_PROTOCOL.Receive(). If NULL, all pending
532 tokens are aborted. Type EFI_IP4_COMPLETION_TOKEN is
533 defined in EFI_IP4_PROTOCOL.Transmit().
534
535 @retval EFI_SUCCESS The asynchronous I/O request was aborted and
536 Token->Event was signaled. When Token is NULL, all
537 pending requests were aborted and their events were signaled.
538 @retval EFI_INVALID_PARAMETER This is NULL.
539 @retval EFI_NOT_STARTED This instance has not been started.
540 @retval EFI_NO_MAPPING When using the default address, configuration (DHCP, BOOTP,
541 RARP, etc.) is not finished yet.
542 @retval EFI_NOT_FOUND When Token is not NULL, the asynchronous I/O request was
543 not found in the transmit or receive queue. It has either completed
544 or was not issued by Transmit() and Receive().
545
546**/
547typedef
550 IN EFI_IP4_PROTOCOL *This,
552 );
553
554/**
555 Polls for incoming data packets and processes outgoing data packets.
556
557 The Poll() function polls for incoming data packets and processes outgoing data
558 packets. Network drivers and applications can call the EFI_IP4_PROTOCOL.Poll()
559 function to increase the rate that data packets are moved between the communications
560 device and the transmit and receive queues.
561
562 In some systems the periodic timer event may not poll the underlying communications
563 device fast enough to transmit and/or receive all data packets without missing
564 incoming packets or dropping outgoing packets. Drivers and applications that are
565 experiencing packet loss should try calling the EFI_IP4_PROTOCOL.Poll() function
566 more often.
567
568 @param This The pointer to the EFI_IP4_PROTOCOL instance.
569
570 @retval EFI_SUCCESS Incoming or outgoing data was processed.
571 @retval EFI_NOT_STARTED This EFI IPv4 Protocol instance has not been started.
572 @retval EFI_NO_MAPPING When using the default address, configuration (DHCP, BOOTP,
573 RARP, etc.) is not finished yet.
574 @retval EFI_INVALID_PARAMETER This is NULL.
575 @retval EFI_DEVICE_ERROR An unexpected system or network error occurred.
576 @retval EFI_NOT_READY No incoming or outgoing data is processed.
577 @retval EFI_TIMEOUT Data was dropped out of the transmit and/or receive queue.
578 Consider increasing the polling rate.
579
580**/
581typedef
584 IN EFI_IP4_PROTOCOL *This
585 );
586
587///
588/// The EFI IPv4 Protocol implements a simple packet-oriented interface that can be
589/// used by drivers, daemons, and applications to transmit and receive network packets.
590///
601
604
605#endif
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 CONST
Datum is read-only.
Definition Base.h:262
#define VOID
Undeclared type.
Definition Base.h:272
#define OPTIONAL
Passing the datum to the function is optional, and a NULL is passed if the value is not supplied.
Definition Base.h:293
EFI_STATUS(EFIAPI * EFI_IP4_CANCEL)(IN EFI_IP4_PROTOCOL *This, IN EFI_IP4_COMPLETION_TOKEN *Token OPTIONAL)
Abort an asynchronous transmit or receive request.
Definition Ip4.h:549
EFI_STATUS(EFIAPI * EFI_IP4_ROUTES)(IN EFI_IP4_PROTOCOL *This, IN BOOLEAN DeleteRoute, IN EFI_IPv4_ADDRESS *SubnetAddress, IN EFI_IPv4_ADDRESS *SubnetMask, IN EFI_IPv4_ADDRESS *GatewayAddress)
Adds and deletes routing table entries.
Definition Ip4.h:435
EFI_STATUS(EFIAPI * EFI_IP4_POLL)(IN EFI_IP4_PROTOCOL *This)
Polls for incoming data packets and processes outgoing data packets.
Definition Ip4.h:583
EFI_STATUS(EFIAPI * EFI_IP4_GROUPS)(IN EFI_IP4_PROTOCOL *This, IN BOOLEAN JoinFlag, IN EFI_IPv4_ADDRESS *GroupAddress OPTIONAL)
Joins and leaves multicast groups.
Definition Ip4.h:377
EFI_GUID gEfiIp4ServiceBindingProtocolGuid
EFI_GUID gEfiIp4ProtocolGuid
struct _EFI_IP4_PROTOCOL EFI_IP4_PROTOCOL
Definition Ip4.h:39
EFI_STATUS(EFIAPI * EFI_IP4_RECEIVE)(IN EFI_IP4_PROTOCOL *This, IN EFI_IP4_COMPLETION_TOKEN *Token)
Places a receiving request into the receiving queue.
Definition Ip4.h:513
EFI_STATUS(EFIAPI * EFI_IP4_GET_MODE_DATA)(IN CONST EFI_IP4_PROTOCOL *This, OUT EFI_IP4_MODE_DATA *Ip4ModeData OPTIONAL, OUT EFI_MANAGED_NETWORK_CONFIG_DATA *MnpConfigData OPTIONAL, OUT EFI_SIMPLE_NETWORK_MODE *SnpModeData OPTIONAL)
Gets the current operational settings for this instance of the EFI IPv4 Protocol driver.
Definition Ip4.h:285
EFI_STATUS(EFIAPI * EFI_IP4_CONFIGURE)(IN EFI_IP4_PROTOCOL *This, IN EFI_IP4_CONFIG_DATA *IpConfigData OPTIONAL)
Assigns an IPv4 address and subnet mask to this EFI IPv4 Protocol driver instance.
Definition Ip4.h:340
EFI_STATUS(EFIAPI * EFI_IP4_TRANSMIT)(IN EFI_IP4_PROTOCOL *This, IN EFI_IP4_COMPLETION_TOKEN *Token)
Places outgoing data packets into the transmit queue.
Definition Ip4.h:474
EFI_MANAGED_NETWORK_SERVICE_BINDING_PROTOCOL as defined in UEFI 2.0.
RETURN_STATUS EFI_STATUS
Function return status for EFI API.
GUID EFI_GUID
128-bit buffer containing a unique identifier value.
IPv4_ADDRESS EFI_IPv4_ADDRESS
4-byte buffer.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
#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_IP4_ADDRESS_PAIR is deprecated in the UEFI 2.4B and should not be used any more.
Definition Ip4.h:45
EFI_IPv4_ADDRESS SubnetMask
Definition Ip4.h:48
EFI_HANDLE InstanceHandle
Definition Ip4.h:46
EFI_IPv4_ADDRESS Ip4Address
Definition Ip4.h:47
EFI_EVENT Event
This Event will be signaled after the Status field is updated by the EFI IPv4 Protocol driver.
Definition Ip4.h:247
EFI_IP4_RECEIVE_DATA * RxData
When this token is used for receiving, RxData is a pointer to the EFI_IP4_RECEIVE_DATA.
Definition Ip4.h:257
EFI_STATUS Status
The status that is returned to the caller at the end of the operation to indicate whether this operat...
Definition Ip4.h:252
EFI_IP4_TRANSMIT_DATA * TxData
When this token is used for transmitting, TxData is a pointer to the EFI_IP4_TRANSMIT_DATA.
Definition Ip4.h:261
BOOLEAN AcceptBroadcast
Set to TRUE to receive broadcast IPv4 packets.
Definition Ip4.h:83
UINT8 TypeOfService
TypeOfService field in transmitted IPv4 packets.
Definition Ip4.h:105
UINT32 ReceiveTimeout
The timer timeout value (number of microseconds) for the receive timeout event to be associated with ...
Definition Ip4.h:124
EFI_IPv4_ADDRESS SubnetMask
The subnet address mask that is associated with the station address.
Definition Ip4.h:101
UINT8 TimeToLive
TimeToLive field in transmitted IPv4 packets.
Definition Ip4.h:109
BOOLEAN AcceptPromiscuous
Set to TRUE to receive all IPv4 packets that are sent to any hardware address or any protocol address...
Definition Ip4.h:89
BOOLEAN DoNotFragment
State of the DoNotFragment bit in transmitted IPv4 packets.
Definition Ip4.h:113
BOOLEAN AcceptAnyProtocol
Set to TRUE to receive all IPv4 packets that get through the receive filters.
Definition Ip4.h:72
UINT8 DefaultProtocol
The default IPv4 protocol packets to send and receive.
Definition Ip4.h:66
EFI_IPv4_ADDRESS StationAddress
The station IPv4 address that will be assigned to this EFI IPv4Protocol instance.
Definition Ip4.h:97
BOOLEAN AcceptIcmpErrors
Set to TRUE to receive ICMP error report packets.
Definition Ip4.h:77
BOOLEAN RawData
Set to TRUE to send and receive unformatted packets.
Definition Ip4.h:118
UINT32 TransmitTimeout
The timer timeout value (number of microseconds) for the transmit timeout event to be associated with...
Definition Ip4.h:130
BOOLEAN UseDefaultAddress
Set to TRUE to use the default IPv4 address and default routing table.
Definition Ip4.h:93
VOID * FragmentBuffer
Definition Ip4.h:206
UINT32 FragmentLength
Definition Ip4.h:205
EFI_IPv4_ADDRESS SourceAddress
Definition Ip4.h:199
UINT8 Version
Definition Ip4.h:191
UINT8 HeaderLength
Definition Ip4.h:190
UINT8 TimeToLive
Definition Ip4.h:196
UINT16 Checksum
Definition Ip4.h:198
UINT8 TypeOfService
Definition Ip4.h:192
UINT16 Identification
Definition Ip4.h:194
UINT8 Protocol
Definition Ip4.h:197
EFI_IPv4_ADDRESS DestinationAddress
Definition Ip4.h:200
UINT16 Fragmentation
Definition Ip4.h:195
UINT16 TotalLength
Definition Ip4.h:193
UINT32 MaxPacketSize
The maximum packet size, in bytes, of the packet which the upper layer driver could feed.
Definition Ip4.h:152
UINT32 IcmpTypeCount
Number of entries in the supported ICMP types list.
Definition Ip4.h:180
BOOLEAN IsConfigured
Set to TRUE when the EFI IPv4 Protocol instance has a station address and subnet mask.
Definition Ip4.h:160
EFI_IP4_CONFIG_DATA ConfigData
Current configuration settings.
Definition Ip4.h:156
EFI_IP4_ROUTE_TABLE * RouteTable
Routing table entries.
Definition Ip4.h:176
EFI_IP4_ICMP_TYPE * IcmpTypeList
Array of ICMP types and codes that are supported by this EFI IPv4 Protocol driver.
Definition Ip4.h:184
BOOLEAN IsStarted
Set to TRUE after this EFI IPv4 Protocol instance has been successfully configured.
Definition Ip4.h:148
UINT32 GroupCount
Number of joined multicast groups.
Definition Ip4.h:164
UINT32 RouteCount
Number of entries in the routing table.
Definition Ip4.h:172
EFI_IPv4_ADDRESS * GroupTable
List of joined multicast group addresses.
Definition Ip4.h:168
BOOLEAN DoNotFragment
Definition Ip4.h:227
EFI_IPv4_ADDRESS SourceAddress
Definition Ip4.h:222
UINT8 TypeOfService
Definition Ip4.h:225
EFI_IPv4_ADDRESS GatewayAddress
Definition Ip4.h:223
EFI_IP4_HEADER * Header
Definition Ip4.h:213
UINT32 HeaderLength
Definition Ip4.h:212
EFI_EVENT RecycleSignal
Definition Ip4.h:211
EFI_IP4_FRAGMENT_DATA FragmentTable[1]
Definition Ip4.h:218
UINT32 OptionsLength
Definition Ip4.h:214
EFI_TIME TimeStamp
Definition Ip4.h:210
UINT32 DataLength
Definition Ip4.h:216
UINT32 FragmentCount
Definition Ip4.h:217
EFI_IPv4_ADDRESS SubnetAddress
Definition Ip4.h:134
EFI_IPv4_ADDRESS GatewayAddress
Definition Ip4.h:136
EFI_IPv4_ADDRESS SubnetMask
Definition Ip4.h:135
VOID * OptionsBuffer
Definition Ip4.h:234
UINT32 TotalDataLength
Definition Ip4.h:235
UINT32 FragmentCount
Definition Ip4.h:236
EFI_IP4_OVERRIDE_DATA * OverrideData
Definition Ip4.h:232
EFI_IPv4_ADDRESS DestinationAddress
Definition Ip4.h:231
EFI_IP4_FRAGMENT_DATA FragmentTable[1]
Definition Ip4.h:237
UINT32 OptionsLength
Definition Ip4.h:233
EFI_IP4_VARIABLE_DATA is deprecated in the UEFI 2.4B and should not be used any more.
Definition Ip4.h:55
EFI_IP4_ADDRESS_PAIR AddressPairs[1]
Definition Ip4.h:58
EFI_HANDLE DriverHandle
Definition Ip4.h:56
UINT32 AddressCount
Definition Ip4.h:57
EFI Time Abstraction: Year: 1900 - 9999 Month: 1 - 12 Day: 1 - 31 Hour: 0 - 23 Minute: 0 - 59 Second:...
The EFI IPv4 Protocol implements a simple packet-oriented interface that can be used by drivers,...
Definition Ip4.h:591
EFI_IP4_POLL Poll
Definition Ip4.h:599
EFI_IP4_GROUPS Groups
Definition Ip4.h:594
EFI_IP4_CONFIGURE Configure
Definition Ip4.h:593
EFI_IP4_RECEIVE Receive
Definition Ip4.h:597
EFI_IP4_CANCEL Cancel
Definition Ip4.h:598
EFI_IP4_TRANSMIT Transmit
Definition Ip4.h:596
EFI_IP4_ROUTES Routes
Definition Ip4.h:595
EFI_IP4_GET_MODE_DATA GetModeData
Definition Ip4.h:592