summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authortye <tye@6f19259b-4bc3-4df7-8a09-765794883524>2009-10-22 06:32:44 +0000
committertye <tye@6f19259b-4bc3-4df7-8a09-765794883524>2009-10-22 06:32:44 +0000
commit3a15fd52680a9412233a7edca69179cbf712b58a (patch)
tree0293ffd014201e43679c51ccb1d0e47ff41fc2d3 /MdeModulePkg
parent713b7b5e974dd84a09acf66aa33bc9f50385a65c (diff)
downloadedk2-3a15fd52680a9412233a7edca69179cbf712b58a.zip
edk2-3a15fd52680a9412233a7edca69179cbf712b58a.tar.gz
edk2-3a15fd52680a9412233a7edca69179cbf712b58a.tar.bz2
Add a MACRO IP6_IS_MULTICAST.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9357 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Include/Library/NetLib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/MdeModulePkg/Include/Library/NetLib.h b/MdeModulePkg/Include/Library/NetLib.h
index 7addeee..16c45cd7 100644
--- a/MdeModulePkg/Include/Library/NetLib.h
+++ b/MdeModulePkg/Include/Library/NetLib.h
@@ -2,7 +2,7 @@
Ihis library is only intended to be used by UEFI network stack modules.
It provides basic functions for the UEFI network stack.
-Copyright (c) 2005 - 2008, Intel Corporation
+Copyright (c) 2005 - 2009, Intel Corporation
All rights reserved. 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
@@ -151,6 +151,8 @@ typedef struct {
#define IP4_NET_EQUAL(Ip1, Ip2, NetMask) (((Ip1) & (NetMask)) == ((Ip2) & (NetMask)))
#define IP4_IS_VALID_NETMASK(Ip) (NetGetMaskLength (Ip) != IP4_MASK_NUM)
+#define IP6_IS_MULTICAST(Ip6) (((Ip6)->Addr[0]) == 0xFF)
+
//
// Convert the EFI_IP4_ADDRESS to plain UINT32 IP4 address.
//