X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FInclude%2FProtocol%2FIp4.h;h=79a9bcacb05383b27cfe58a3edd0ca2d669d5105;hb=2946ffb6ed1482378d3bf0cab8e75362286260e4;hp=15ec514d800c6e0ef253f57d33abe694513d0b2f;hpb=0424593539571162530df9f3179f5c6851a01577;p=mirror_edk2.git diff --git a/MdePkg/Include/Protocol/Ip4.h b/MdePkg/Include/Protocol/Ip4.h index 15ec514d80..79a9bcacb0 100644 --- a/MdePkg/Include/Protocol/Ip4.h +++ b/MdePkg/Include/Protocol/Ip4.h @@ -3,24 +3,24 @@ Protocol interface. It is split into the following three main sections: - EFI IPv4 Service Binding Protocol - - EFI IPv4 Variable - - EFI IPv4 Protocol + - EFI IPv4 Variable (deprecated in UEFI 2.4B) + - EFI IPv4 Protocol. The EFI IPv4 Protocol provides basic network IPv4 packet I/O services, which includes support foR a subset of the Internet Control Message Protocol (ICMP) and may include support for the Internet Group Management Protocol (IGMP). - Copyright (c) 2006 - 2009, Intel Corporation - All rights reserved. This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under +the terms and conditions of the BSD License that accompanies this distribution. +The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php. + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @par Revision Reference: - This Protocol is introduced in UEFI Specification 2.0 + This Protocol is introduced in UEFI Specification 2.0. **/ @@ -40,13 +40,21 @@ } typedef struct _EFI_IP4_PROTOCOL EFI_IP4_PROTOCOL; - + +/// +/// EFI_IP4_ADDRESS_PAIR is deprecated in the UEFI 2.4B and should not be used any more. +/// The definition in here is only present to provide backwards compatability. +/// typedef struct { EFI_HANDLE InstanceHandle; EFI_IPv4_ADDRESS Ip4Address; EFI_IPv4_ADDRESS SubnetMask; } EFI_IP4_ADDRESS_PAIR; +/// +/// EFI_IP4_VARIABLE_DATA is deprecated in the UEFI 2.4B and should not be used any more. +/// The definition in here is only present to provide backwards compatability. +/// typedef struct { EFI_HANDLE DriverHandle; UINT32 AddressCount; @@ -269,10 +277,10 @@ typedef struct { function is used optionally to retrieve the operational mode data of underlying networks or drivers. - @param This Pointer to the EFI_IP4_PROTOCOL instance. - @param Ip4ModeData Pointer to the EFI IPv4 Protocol mode data structure. - @param MnpConfigData Pointer to the managed network configuration data structure. - @param SnpModeData Pointer to the simple network mode data structure. + @param This The pointer to the EFI_IP4_PROTOCOL instance. + @param Ip4ModeData The pointer to the EFI IPv4 Protocol mode data structure. + @param MnpConfigData The pointer to the managed network configuration data structure. + @param SnpModeData The pointer to the simple network mode data structure. @retval EFI_SUCCESS The operation completed successfully. @retval EFI_INVALID_PARAMETER This is NULL. @@ -311,8 +319,8 @@ EFI_STATUS requests will be cancelled. Their completion token status will be set to EFI_ABORTED and their events will be signaled. - @param This Pointer to the EFI_IP4_PROTOCOL instance. - @param IpConfigData Pointer to the EFI IPv4 Protocol configuration data structure. + @param This The pointer to the EFI_IP4_PROTOCOL instance. + @param IpConfigData The pointer to the EFI IPv4 Protocol configuration data structure. @retval EFI_SUCCESS The driver instance was successfully opened. @retval EFI_NO_MAPPING When using the default address, configuration (DHCP, BOOTP, @@ -350,9 +358,9 @@ EFI_STATUS If JoinFlag is FALSE and GroupAddress is NULL, all joined groups will be left. - @param This Pointer to the EFI_IP4_PROTOCOL instance. + @param This The pointer to the EFI_IP4_PROTOCOL instance. @param JoinFlag Set to TRUE to join the multicast group session and FALSE to leave. - @param GroupAddress Pointer to the IPv4 multicast address. + @param GroupAddress The pointer to the IPv4 multicast address. @retval EFI_SUCCESS The operation completed successfully. @retval EFI_INVALID_PARAMETER One or more of the following is TRUE: @@ -403,7 +411,7 @@ EFI_STATUS copies will be updated whenever the EIF IPv4 Protocol driver reconfigures its instances. As a result, client modification to the routing table will be lost. - @param This Pointer to the EFI_IP4_PROTOCOL instance. + @param This The pointer to the EFI_IP4_PROTOCOL instance. @param DeleteRoute Set to TRUE to delete this route from the routing table. Set to FALSE to add this route to the routing table. SubnetAddress and SubnetMask are used as the key to each route entry. @@ -446,8 +454,8 @@ EFI_STATUS EFI IPv4 Protocol instance. Whenever the packet in the token is sent out or some errors occur, the event in the token will be signaled and the status is updated. - @param This Pointer to the EFI_IP4_PROTOCOL instance. - @param Token Pointer to the transmit token. + @param This The pointer to the EFI_IP4_PROTOCOL instance. + @param Token The pointer to the transmit token. @retval EFI_SUCCESS The data has been queued for transmission. @retval EFI_NOT_STARTED This instance has not been started. @@ -486,8 +494,8 @@ EFI_STATUS driver updates the Token.Status and Token.Packet.RxData fields and the Token.Event is signaled. - @param This Pointer to the EFI_IP4_PROTOCOL instance. - @param Token Pointer to a token that is associated with the receive data descriptor. + @param This The pointer to the EFI_IP4_PROTOCOL instance. + @param Token The pointer to a token that is associated with the receive data descriptor. @retval EFI_SUCCESS The receive completion token was cached. @retval EFI_NOT_STARTED This EFI IPv4 Protocol instance has not been started. @@ -524,8 +532,8 @@ EFI_STATUS asynchronous operation has completed, this function will not signal the token and EFI_NOT_FOUND is returned. - @param This Pointer to the EFI_IP4_PROTOCOL instance. - @param Token Pointer to a token that has been issued by + @param This The pointer to the EFI_IP4_PROTOCOL instance. + @param Token The pointer to a token that has been issued by EFI_IP4_PROTOCOL.Transmit() or EFI_IP4_PROTOCOL.Receive(). If NULL, all pending tokens are aborted. Type EFI_IP4_COMPLETION_TOKEN is @@ -564,7 +572,7 @@ EFI_STATUS experiencing packet loss should try calling the EFI_IP4_PROTOCOL.Poll() function more often. - @param This Pointer to the EFI_IP4_PROTOCOL instance. + @param This The pointer to the EFI_IP4_PROTOCOL instance. @retval EFI_SUCCESS Incoming or outgoing data was processed. @retval EFI_NOT_STARTED This EFI IPv4 Protocol instance has not been started.