summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorJiaxin Wu <jiaxin.wu@intel.com>2016-01-29 06:45:39 +0000
committerjiaxinwu <jiaxinwu@Edk2>2016-01-29 06:45:39 +0000
commit9132a8f8b249b41e5db5b430dd7f5f246e5e71e3 (patch)
treebd97768ac119a1adbae15088439ab9dce3e4ba75 /MdePkg
parent5aec6991e7d6af8420eefa4c0fd3bf4de323def2 (diff)
downloadedk2-9132a8f8b249b41e5db5b430dd7f5f246e5e71e3.tar.gz
edk2-9132a8f8b249b41e5db5b430dd7f5f246e5e71e3.tar.bz2
edk2-9132a8f8b249b41e5db5b430dd7f5f246e5e71e3.zip
MdePkg: Remove magic number
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
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Protocol/Ip4Config2.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/MdePkg/Include/Protocol/Ip4Config2.h b/MdePkg/Include/Protocol/Ip4Config2.h
index 383da8a4e0..fca2bb5e2d 100644
--- a/MdePkg/Include/Protocol/Ip4Config2.h
+++ b/MdePkg/Include/Protocol/Ip4Config2.h
@@ -2,7 +2,7 @@
This file provides a definition of the EFI IPv4 Configuration II
Protocol.
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>
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<BR>
@@ -76,13 +76,18 @@ typedef enum {
} EFI_IP4_CONFIG2_DATA_TYPE;
///
+/// EFI_IP4_CONFIG2_INTERFACE_INFO related definitions
+///
+#define EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_SIZE 32
+
+///
/// EFI_IP4_CONFIG2_INTERFACE_INFO
///
typedef struct {
///
/// The name of the interface. It is a NULL-terminated Unicode string.
///
- CHAR16 Name[32];
+ CHAR16 Name[EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_SIZE];
///
/// The interface type of the network interface. See RFC 1700,
/// section "Number Hardware Type".