/** @file\r
- Implementation of converting an multicast IP address to multicast HW MAC\r
- address.\r
- \r
-Copyright (c) 2004 - 2007, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
-and made available under the terms and conditions of the BSD License which \r
-accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ Implementation of converting an multicast IP address to multicast HW MAC\r
+ address.\r
+\r
+Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
@param IP Multicast IP address.\r
@param MAC Pointer to hold the return MAC address.\r
\r
- @retval EFI_SUCCESS The multicast IP address was mapped to the \r
+ @retval EFI_SUCCESS The multicast IP address was mapped to the\r
multicast HW MAC address.\r
- @retval EFI_INVALID_PARAMETER Invalid UNDI command. \r
- @retval EFI_UNSUPPORTED Command is not supported by UNDI. \r
- @retval EFI_DEVICE_ERROR Fail to execute UNDI command. \r
+ @retval EFI_INVALID_PARAMETER Invalid UNDI command.\r
+ @retval EFI_UNSUPPORTED Command is not supported by UNDI.\r
+ @retval EFI_DEVICE_ERROR Fail to execute UNDI command.\r
\r
**/\r
EFI_STATUS\r
Db = Snp->Db;\r
Snp->Cdb.OpCode = PXE_OPCODE_MCAST_IP_TO_MAC;\r
Snp->Cdb.OpFlags = (UINT16) (IPv6 ? PXE_OPFLAGS_MCAST_IPV6_TO_MAC : PXE_OPFLAGS_MCAST_IPV4_TO_MAC);\r
- Snp->Cdb.CPBsize = sizeof (PXE_CPB_MCAST_IP_TO_MAC);\r
- Snp->Cdb.DBsize = sizeof (PXE_DB_MCAST_IP_TO_MAC);\r
+ Snp->Cdb.CPBsize = (UINT16) sizeof (PXE_CPB_MCAST_IP_TO_MAC);\r
+ Snp->Cdb.DBsize = (UINT16) sizeof (PXE_DB_MCAST_IP_TO_MAC);\r
\r
Snp->Cdb.CPBaddr = (UINT64)(UINTN) Cpb;\r
Snp->Cdb.DBaddr = (UINT64)(UINTN) Db;\r
//\r
// Issue UNDI command and check result.\r
//\r
- DEBUG ((EFI_D_INFO | EFI_D_NET, "\nSnp->undi.mcast_ip_to_mac() "));\r
+ DEBUG ((EFI_D_NET, "\nSnp->undi.mcast_ip_to_mac() "));\r
\r
(*Snp->IssueUndi32Command) ((UINT64)(UINTN) &Snp->Cdb);\r
\r
\r
case PXE_STATCODE_UNSUPPORTED:\r
DEBUG (\r
- (EFI_D_ERROR | EFI_D_NET,\r
+ (EFI_D_NET,\r
"\nSnp->undi.mcast_ip_to_mac() %xh:%xh\n",\r
Snp->Cdb.StatFlags,\r
Snp->Cdb.StatCode)\r
// to caller.\r
//\r
DEBUG (\r
- (EFI_D_ERROR | EFI_D_NET,\r
+ (EFI_D_NET,\r
"\nSnp->undi.mcast_ip_to_mac() %xh:%xh\n",\r
Snp->Cdb.StatFlags,\r
Snp->Cdb.StatCode)\r
\r
/**\r
Converts a multicast IP address to a multicast HW MAC address.\r
- \r
- This function converts a multicast IP address to a multicast HW MAC address \r
+\r
+ This function converts a multicast IP address to a multicast HW MAC address\r
for all packet transactions. If the mapping is accepted, then EFI_SUCCESS will\r
be returned.\r
\r
@param This A pointer to the EFI_SIMPLE_NETWORK_PROTOCOL instance.\r
@param IPv6 Set to TRUE if the multicast IP address is IPv6 [RFC 2460].\r
- Set to FALSE if the multicast IP address is IPv4 [RFC 791]. \r
- @param IP The multicast IP address that is to be converted to a multicast \r
+ Set to FALSE if the multicast IP address is IPv4 [RFC 791].\r
+ @param IP The multicast IP address that is to be converted to a multicast\r
HW MAC address.\r
@param MAC The multicast HW MAC address that is to be generated from IP.\r
\r
@retval EFI_SUCCESS The multicast IP address was mapped to the\r
multicast HW MAC address.\r
- @retval EFI_NOT_STARTED The Simple Network Protocol interface has not \r
+ @retval EFI_NOT_STARTED The Simple Network Protocol interface has not\r
been started by calling Start().\r
@retval EFI_INVALID_PARAMETER IP is NULL.\r
@retval EFI_INVALID_PARAMETER MAC is NULL.\r
- @retval EFI_INVALID_PARAMETER IP does not point to a valid IPv4 or IPv6 \r
+ @retval EFI_INVALID_PARAMETER IP does not point to a valid IPv4 or IPv6\r
multicast address.\r
- @retval EFI_DEVICE_ERROR The Simple Network Protocol interface has not \r
+ @retval EFI_DEVICE_ERROR The Simple Network Protocol interface has not\r
been initialized by calling Initialize().\r
- @retval EFI_UNSUPPORTED IPv6 is TRUE and the implementation does not \r
+ @retval EFI_UNSUPPORTED IPv6 is TRUE and the implementation does not\r
support IPv6 multicast to MAC address conversion.\r
\r
**/\r