/** @file\r
The implementation of common functions shared by IP6 driver.\r
\r
- Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
IP6_ADDRESS_INFO *AddrInfo;\r
EFI_IPv6_ADDRESS SnMCastAddr;\r
\r
- if (IsListEmpty (AddressList) || *AddressCount < 1 || PrefixLength > IP6_PREFIX_NUM) {\r
+ if (IsListEmpty (AddressList) || *AddressCount < 1 || PrefixLength > IP6_PREFIX_MAX) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
UINT8 Mask;\r
\r
ASSERT (Dest != NULL && Src != NULL);\r
- ASSERT (PrefixLength < IP6_PREFIX_NUM);\r
+ ASSERT (PrefixLength <= IP6_PREFIX_MAX);\r
\r
Byte = (UINT8) (PrefixLength / 8);\r
Bit = (UINT8) (PrefixLength % 8);\r