summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-08 18:18:40 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2011-08-08 18:18:40 +0000
commit42372879b5a96136e58d3f4755a892fd20b61d68 (patch)
tree08be58277ba4cd52dae05429b53d549eb1f5cba4
parentf75316c3ab99e80e78cbf72293f9c929dc8eb02f (diff)
downloadedk2-42372879b5a96136e58d3f4755a892fd20b61d68.zip
edk2-42372879b5a96136e58d3f4755a892fd20b61d68.tar.gz
edk2-42372879b5a96136e58d3f4755a892fd20b61d68.tar.bz2
add IPv4 address copy macro.
signed-off-by: jcarsey Reviewed-by: geekboy15a git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12098 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Include/Library/NetLib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Include/Library/NetLib.h b/MdeModulePkg/Include/Library/NetLib.h
index 4bb1f76..f1c6595 100644
--- a/MdeModulePkg/Include/Library/NetLib.h
+++ b/MdeModulePkg/Include/Library/NetLib.h
@@ -212,6 +212,7 @@ typedef struct {
#define EFI_IP6_EQUAL(Ip1, Ip2) (CompareMem ((Ip1), (Ip2), sizeof (EFI_IPv6_ADDRESS)) == 0)
+#define IP4_COPY_ADDRESS(Dest, Src) (CopyMem ((Dest), (Src), sizeof (EFI_IPv4_ADDRESS)))
#define IP6_COPY_ADDRESS(Dest, Src) (CopyMem ((Dest), (Src), sizeof (EFI_IPv6_ADDRESS)))
#define IP6_COPY_LINK_ADDRESS(Mac1, Mac2) (CopyMem ((Mac1), (Mac2), sizeof (EFI_MAC_ADDRESS)))