]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Ip4Config2.h
MdePkg: Update the comments of Ip4Config2/Ip6Config Protocol
[mirror_edk2.git] / MdePkg / Include / Protocol / Ip4Config2.h
index fca2bb5e2d57620d794244b6f2d13dfab795badb..ced63cbcbf7768c4ab3d66e74d673b1dc05784fb 100644 (file)
@@ -2,7 +2,7 @@
   This file provides a definition of the EFI IPv4 Configuration II\r
   Protocol.\r
 \r
-Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at<BR>\r
@@ -51,7 +51,9 @@ typedef enum {
   /// The station addresses set manually for the EFI IPv4 network \r
   /// stack. It is only configurable when the policy is \r
   /// Ip4Config2PolicyStatic. The corresponding Data is of \r
-  /// type EFI_IP4_CONFIG2_MANUAL_ADDRESS.\r
+  /// type EFI_IP4_CONFIG2_MANUAL_ADDRESS. When DataSize \r
+  /// is 0 and Data is NULL, the existing configuration is cleared \r
+  /// from the EFI IPv4 Configuration II Protocol instance.\r
   ///\r
   Ip4Config2DataTypeManualAddress,\r
   ///\r
@@ -61,6 +63,8 @@ typedef enum {
   /// the policy is Ip4Config2PolicyDhcp. The gateway \r
   /// addresses must be unicast IPv4 addresses. The corresponding \r
   /// Data is a pointer to an array of EFI_IPv4_ADDRESS instances.\r
+  /// When DataSize is 0 and Data is NULL, the existing configuration \r
+  /// is cleared from the EFI IPv4 Configuration II Protocol instance.\r
   ///\r
   Ip4Config2DataTypeGateway,\r
   ///\r
@@ -69,7 +73,9 @@ typedef enum {
   /// Protocol manages. It is not configurable when the policy is \r
   /// Ip4Config2PolicyDhcp. The DNS server addresses must be \r
   /// unicast IPv4 addresses. The corresponding Data is a pointer to \r
-  /// an array of EFI_IPv4_ADDRESS instances.\r
+  /// an array of EFI_IPv4_ADDRESS instances. When DataSize \r
+  /// is 0 and Data is NULL, the existing configuration is cleared \r
+  /// from the EFI IPv4 Configuration II Protocol instance.\r
   ///\r
   Ip4Config2DataTypeDnsServer,\r
   Ip4Config2DataTypeMaximum\r
@@ -186,9 +192,8 @@ typedef struct {
                                   successfully.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following are TRUE:\r
                                   This is NULL.\r
-                                  Data is NULL.\r
-                                  One or more fields in Data do not match the requirement of the data type \r
-                                  indicated by DataType.\r
+                                  One or more fields in Data and DataSize do not match the \r
+                                  requirement of the data type indicated by DataType.\r
   @retval EFI_WRITE_PROTECTED     The specified configuration data is read-only or the specified configuration \r
                                   data can not be set under the current policy.\r
   @retval EFI_ACCESS_DENIED       Another set operation on the specified configuration data is already in process.\r