Implement IP4 pesudo interface.\r
\r
Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\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 tries to send all the queued frames in ArpQue to the default gateway if \r
+ This function tries to send all the queued frames in ArpQue to the default gateway if\r
the ARP resolve for direct destination address is failed when using /32 subnet mask.\r
\r
@param[in] ArpQue The ARP queue of a failed request.\r
- \r
+\r
@retval EFI_SUCCESS All the queued frames have been send to the default route.\r
@retval Others Failed to send the queued frames.\r
- \r
+\r
**/\r
EFI_STATUS\r
Ip4SendFrameToDefaultRoute (\r
IP4_ADDR Gateway;\r
EFI_STATUS Status;\r
IP4_ROUTE_ENTRY *DefaultRoute;\r
- \r
+\r
//\r
// ARP resolve failed when using /32 subnet mask.\r
//\r
Gateway = DefaultRoute->NextHop;\r
if (ArpQue->Ip == Gateway) {\r
//\r
- // ARP resolve for the default route is failed, return error to caller. \r
+ // ARP resolve for the default route is failed, return error to caller.\r
//\r
Status= EFI_NO_MAPPING;\r
goto ON_ERROR;\r
}\r
\r
return EFI_SUCCESS;\r
- \r
+\r
ON_ERROR:\r
if (RtCacheEntry != NULL) {\r
Ip4FreeRouteCacheEntry (RtCacheEntry);\r
RemoveEntryList (&ArpQue->Link);\r
\r
//\r
- // ARP resolve failed for some reason. \r
+ // ARP resolve failed for some reason.\r
//\r
if (NET_MAC_EQUAL (&ArpQue->Mac, &mZeroMacAddress, ArpQue->Interface->HwaddrLen)) {\r
if (ArpQue->Interface->SubnetMask != IP4_ALLONE_ADDRESS) {\r