\r
Migrate Single PPI Pointer from the temporary memory to PEI installed memory.\r
\r
- @param SecCoreData Points to a data structure containing SEC to PEI handoff data, such as the size \r
+ @param SecCoreData Points to a data structure containing SEC to PEI handoff data, such as the size\r
and location of temporary RAM, the stack location and the BFV location.\r
@param PrivateData Pointer to PeiCore's private data structure.\r
@param PpiPointer Pointer to Ppi\r
\r
Migrate PPI Pointers from the temporary memory to PEI installed memory.\r
\r
- @param SecCoreData Points to a data structure containing SEC to PEI handoff data, such as the size \r
+ @param SecCoreData Points to a data structure containing SEC to PEI handoff data, such as the size\r
and location of temporary RAM, the stack location and the BFV location.\r
@param PrivateData Pointer to PeiCore's private data structure.\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
//\r
if (IpSb->State == IP4_SERVICE_UNSTARTED) {\r
//\r
- // Trigger the EFI_IP4_CONFIG2_PROTOCOL to retrieve the \r
+ // Trigger the EFI_IP4_CONFIG2_PROTOCOL to retrieve the\r
// default IPv4 address if it is not available yet.\r
//\r
Policy = IpSb->Ip4Config2Instance.Policy;\r
}\r
\r
RawHdrLen = (UINT8) (RawHdrLen << 2);\r
- \r
+\r
CopyMem (&Head, FirstFragment, IP4_MIN_HEADLEN);\r
\r
Ip4NtohHead (&Head);\r
}\r
\r
/**\r
- This heart beat timer of IP4 service instance times out all of its IP4 children's \r
- received-but-not-delivered and transmitted-but-not-recycle packets, and provides \r
+ This heart beat timer of IP4 service instance times out all of its IP4 children's\r
+ received-but-not-delivered and transmitted-but-not-recycle packets, and provides\r
time input for its IGMP protocol.\r
\r
@param[in] Event The IP4 service instance's heart beat timer.\r
\r
IpSb = (IP4_SERVICE *) Context;\r
NET_CHECK_SIGNATURE (IpSb, IP4_SERVICE_SIGNATURE);\r
- \r
+\r
Ip4PacketTimerTicking (IpSb);\r
Ip4IgmpTicking (IpSb);\r
}\r
\r
/**\r
- This dedicated timer is used to poll underlying network media status. In case \r
- of cable swap or wireless network switch, a new round auto configuration will \r
- be initiated. The timer will signal the IP4 to run DHCP configuration again. \r
- IP4 driver will free old IP address related resource, such as route table and \r
- Interface, then initiate a DHCP process to acquire new IP, eventually create \r
+ This dedicated timer is used to poll underlying network media status. In case\r
+ of cable swap or wireless network switch, a new round auto configuration will\r
+ be initiated. The timer will signal the IP4 to run DHCP configuration again.\r
+ IP4 driver will free old IP address related resource, such as route table and\r
+ Interface, then initiate a DHCP process to acquire new IP, eventually create\r
route table for new IP address.\r
\r
@param[in] Event The IP4 service instance's heart beat timer.\r
\r
IpSb = (IP4_SERVICE *) Context;\r
NET_CHECK_SIGNATURE (IpSb, IP4_SERVICE_SIGNATURE);\r
- \r
+\r
OldMediaPresent = IpSb->MediaPresent;\r
\r
//\r
- // Get fresh mode data from MNP, since underlying media status may change. \r
- // Here, it needs to mention that the MediaPresent can also be checked even if \r
+ // Get fresh mode data from MNP, since underlying media status may change.\r
+ // Here, it needs to mention that the MediaPresent can also be checked even if\r
// EFI_NOT_STARTED returned while this MNP child driver instance isn't configured.\r
//\r
Status = IpSb->Mnp->GetModeData (IpSb->Mnp, NULL, &SnpModeData);\r
if (!OldMediaPresent && IpSb->MediaPresent && (IpSb->Ip4Config2Instance.Policy == Ip4Config2PolicyDhcp)) {\r
//\r
// Signal the IP4 to run the dhcp configuration again. IP4 driver will free\r
- // old IP address related resource, such as route table and Interface, then \r
- // initiate a DHCP round to acquire new IP, eventually \r
+ // old IP address related resource, such as route table and Interface, then\r
+ // initiate a DHCP round to acquire new IP, eventually\r
// create route table for new IP address.\r
//\r
if (IpSb->ReconfigEvent != NULL) {\r