Revision: 19769
          http://sourceforge.net/p/edk2/code/19769
Author:   jiaxinwu
Date:     2016-01-29 06:45:39 +0000 (Fri, 29 Jan 2016)
Log Message:
-----------
MdePkg: Remove magic number

This patch is used to update structure of
EFI_IP4_CONFIG2_INTERFACE_INFO to remove
magic number.

Cc: Fu Siyuan <[email protected]>
Cc: Ye Ting <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiaxin Wu <[email protected]>
Reviewed-by: Ye Ting <[email protected]>
Reviewed-by: Siyuan Fu <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdePkg/Include/Protocol/Ip4Config2.h

Modified: trunk/edk2/MdePkg/Include/Protocol/Ip4Config2.h
===================================================================
--- trunk/edk2/MdePkg/Include/Protocol/Ip4Config2.h     2016-01-29 04:54:37 UTC 
(rev 19768)
+++ trunk/edk2/MdePkg/Include/Protocol/Ip4Config2.h     2016-01-29 06:45:39 UTC 
(rev 19769)
@@ -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 @@
 } 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".


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to