]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add a MACRO IP6_IS_MULTICAST.
authortye <tye@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 22 Oct 2009 06:32:44 +0000 (06:32 +0000)
committertye <tye@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 22 Oct 2009 06:32:44 +0000 (06:32 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9357 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Include/Library/NetLib.h

index 7addeeef79d8dc67d456866e0c9ff4f6d53f2209..16c45cd749d7fda623c605bd75b5934e5d6a0b84 100644 (file)
@@ -2,7 +2,7 @@
   Ihis library is only intended to be used by UEFI network stack modules.\r
   It provides basic functions for the UEFI network stack.\r
 \r
-Copyright (c) 2005 - 2008, Intel Corporation\r
+Copyright (c) 2005 - 2009, Intel Corporation\r
 All rights reserved. This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -151,6 +151,8 @@ typedef struct {
 #define IP4_NET_EQUAL(Ip1, Ip2, NetMask)  (((Ip1) & (NetMask)) == ((Ip2) & (NetMask)))\r
 #define IP4_IS_VALID_NETMASK(Ip)          (NetGetMaskLength (Ip) != IP4_MASK_NUM)\r
 \r
+#define IP6_IS_MULTICAST(Ip6)             (((Ip6)->Addr[0]) == 0xFF)\r
+\r
 //\r
 // Convert the EFI_IP4_ADDRESS to plain UINT32 IP4 address.\r
 //\r