\r
Copyright (c) 2009 - 2018, 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
- which 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
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
\r
);\r
\r
/**\r
- This function cancle the token specified by Arg in the Map.\r
+ This function cancel the token specified by Arg in the Map.\r
\r
@param[in] Map Pointer to the NET_MAP.\r
@param[in] Item Pointer to the NET_MAP_ITEM.\r
\r
IpIoDestroy (Udp6Service->IpIo);\r
Udp6Service->IpIo = NULL;\r
- \r
+\r
return Status;\r
}\r
\r
//\r
IpIoDestroy (Udp6Service->IpIo);\r
Udp6Service->IpIo = NULL;\r
- \r
+\r
ZeroMem (Udp6Service, sizeof (UDP6_SERVICE_DATA));\r
}\r
\r
\r
\r
/**\r
- This function intializes the new created udp instance.\r
+ This function initializes the new created udp instance.\r
\r
@param[in] Udp6Service Pointer to the UDP6_SERVICE_DATA.\r
@param[in, out] Instance Pointer to the un-initialized UDP6_INSTANCE_DATA.\r
\r
/**\r
This function tries to bind the udp instance according to the configured port\r
- allocation stragety.\r
+ allocation strategy.\r
\r
@param[in] InstanceList Pointer to the head of the list linking the udp\r
instances.\r
\r
if ((UdpSessionData->DestinationPort == 0) && (ConfigData->RemotePort == 0)) {\r
//\r
- // Ambiguous; no avalaible DestinationPort for this token.\r
+ // Ambiguous; no available DestinationPort for this token.\r
//\r
return EFI_INVALID_PARAMETER;\r
}\r
NetIp6IsUnspecifiedAddr (&ConfigData->RemoteAddress)\r
) {\r
//\r
- // The DestinationAddress is not specificed.\r
+ // The DestinationAddress is not specified.\r
//\r
return EFI_INVALID_PARAMETER;\r
}\r
pseudo HeadSum to reduce some overhead.\r
\r
@param[in] Packet Pointer to the NET_BUF contains the udp datagram.\r
- @param[in] HeadSum Checksum of the pseudo header, execpt the length\r
+ @param[in] HeadSum Checksum of the pseudo header, except the length\r
field.\r
\r
@return The 16-bit checksum of this udp datagram.\r
\r
\r
/**\r
- This function cancle the token specified by Arg in the Map.\r
+ This function cancel the token specified by Arg in the Map.\r
\r
@param[in] Map Pointer to the NET_MAP.\r
@param[in] Item Pointer to the NET_MAP_ITEM.\r
from the received udp datagram.\r
\r
@retval TRUE The udp datagram matches the receiving requirements of the Instance.\r
- @retval FALSE The udp datagram does not matche the receiving requirements of the Instance.\r
+ @retval FALSE The udp datagram does not match the receiving requirements of the Instance.\r
\r
**/\r
BOOLEAN\r
NetbufFree (Packet);\r
return;\r
}\r
- \r
+\r
//\r
// Get the datagram header from the packet buffer.\r
//\r
);\r
\r
//\r
- // Set the checksum as zero, and IP6 driver will calcuate it with pseudo header.\r
+ // Set the checksum as zero, and IP6 driver will calculate it with pseudo header.\r
//\r
IcmpErrHdr->Head.Checksum = 0;\r
\r
NetbufFree (Packet);\r
return;\r
}\r
- \r
+\r
Udp6Header = (EFI_UDP_HEADER *) NetbufGetByte (Packet, 0, NULL);\r
ASSERT (Udp6Header != NULL);\r
if (Udp6Header == NULL) {\r
IN VOID *Context\r
)\r
{\r
-} \r
+}\r
\r
/**\r
Find the key in the netmap.\r