diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-02-13 18:08:24 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-02-28 11:30:31 +0800 |
commit | ab4de5c8b43bed4d9cf6b220fbc3743828571ad7 (patch) | |
tree | 2d05d4ed6c3ec815d40cd1aa8c7096568b2fae1b /MdePkg/Include/Uefi/UefiBaseType.h | |
parent | 6e84fd6e97007a61b831e5ad14a096097e4df10b (diff) | |
download | edk2-ab4de5c8b43bed4d9cf6b220fbc3743828571ad7.tar.gz edk2-ab4de5c8b43bed4d9cf6b220fbc3743828571ad7.tar.bz2 edk2-ab4de5c8b43bed4d9cf6b220fbc3743828571ad7.zip |
MdePkg: Define IPv4_ADDRESS and IPv6_ADDRESS in Base.h
Since the following patch needs to add API converting string
to IP address in BaseLib, define the IP address as base types
in Base.h.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Include/Uefi/UefiBaseType.h')
-rw-r--r-- | MdePkg/Include/Uefi/UefiBaseType.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/MdePkg/Include/Uefi/UefiBaseType.h b/MdePkg/Include/Uefi/UefiBaseType.h index 84e4dc65bf..728a047260 100644 --- a/MdePkg/Include/Uefi/UefiBaseType.h +++ b/MdePkg/Include/Uefi/UefiBaseType.h @@ -1,7 +1,7 @@ /** @file
Defines data types and constants introduced in UEFI.
-Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2011 - 2016, ARM Ltd. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available under
@@ -87,16 +87,12 @@ typedef struct { ///
/// 4-byte buffer. An IPv4 internet protocol address.
///
-typedef struct {
- UINT8 Addr[4];
-} EFI_IPv4_ADDRESS;
+typedef IPv4_ADDRESS EFI_IPv4_ADDRESS;
///
/// 16-byte buffer. An IPv6 internet protocol address.
///
-typedef struct {
- UINT8 Addr[16];
-} EFI_IPv6_ADDRESS;
+typedef IPv6_ADDRESS EFI_IPv6_ADDRESS;
///
/// 32-byte buffer containing a network Media Access Control address.
|