]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Remove magic number
authorJiaxin Wu <jiaxin.wu@intel.com>
Fri, 29 Jan 2016 06:45:39 +0000 (06:45 +0000)
committerjiaxinwu <jiaxinwu@Edk2>
Fri, 29 Jan 2016 06:45:39 +0000 (06:45 +0000)
This patch is used to update structure of
EFI_IP4_CONFIG2_INTERFACE_INFO to remove
magic number.

Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Siyuan Fu <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19769 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Protocol/Ip4Config2.h

index 383da8a4e0e0e85c134c9aeb20c00b7faf992c69..fca2bb5e2d57620d794244b6f2d13dfab795badb 100644 (file)
@@ -2,7 +2,7 @@
   This file provides a definition of the EFI IPv4 Configuration II\r
   Protocol.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2016, 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
@@ -75,6 +75,11 @@ typedef enum {
   Ip4Config2DataTypeMaximum\r
 } EFI_IP4_CONFIG2_DATA_TYPE;\r
 \r
+///\r
+/// EFI_IP4_CONFIG2_INTERFACE_INFO related definitions\r
+///\r
+#define EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_SIZE 32\r
+\r
 ///\r
 /// EFI_IP4_CONFIG2_INTERFACE_INFO\r
 ///\r
@@ -82,7 +87,7 @@ typedef struct {
   ///\r
   /// The name of the interface. It is a NULL-terminated Unicode string.\r
   ///\r
-  CHAR16                Name[32];\r
+  CHAR16                Name[EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_SIZE];\r
   ///\r
   /// The interface type of the network interface. See RFC 1700, \r
   /// section "Number Hardware Type".\r