]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
NetworkPkg: Clean up source files
[mirror_edk2.git] / NetworkPkg / UefiPxeBcDxe / PxeBcImpl.c
index b828d24288990ea1cc1f1062f39969452dca4688..13396903f5853176d55667488ff4095641f4842f 100644 (file)
@@ -91,7 +91,7 @@ EfiPxeBcStart (
     if (EFI_ERROR (Status)) {\r
       goto ON_ERROR;\r
     }\r
-    \r
+\r
     //\r
     // Configure block size for TFTP as a default value to handle all link layers.\r
     //\r
@@ -144,7 +144,7 @@ EfiPxeBcStart (
     if (EFI_ERROR (Status)) {\r
       goto ON_ERROR;\r
     }\r
-    \r
+\r
     //\r
     // Configure block size for TFTP as a default value to handle all link layers.\r
     //\r
@@ -206,10 +206,10 @@ EfiPxeBcStart (
     }\r
 \r
     //\r
-    //DHCP4 service allows only one of its children to be configured in  \r
-    //the active state, If the DHCP4 D.O.R.A started by IP4 auto  \r
-    //configuration and has not been completed, the Dhcp4 state machine \r
-    //will not be in the right state for the PXE to start a new round D.O.R.A. \r
+    //DHCP4 service allows only one of its children to be configured in\r
+    //the active state, If the DHCP4 D.O.R.A started by IP4 auto\r
+    //configuration and has not been completed, the Dhcp4 state machine\r
+    //will not be in the right state for the PXE to start a new round D.O.R.A.\r
     //so we need to switch it's policy to static.\r
     //\r
     Status = PxeBcSetIp4Policy (Private);\r
@@ -745,13 +745,13 @@ ON_EXIT:
   if (NewCreatedInfo != NULL && NewCreatedInfo != &DefaultInfo) {\r
     FreePool (NewCreatedInfo);\r
   }\r
-  \r
+\r
   if (Mode->UsingIpv6) {\r
     Private->Udp6Read->Configure (Private->Udp6Read, &Private->Udp6CfgData);\r
   } else {\r
     Private->Udp4Read->Configure (Private->Udp4Read, &Private->Udp4CfgData);\r
   }\r
-  \r
+\r
   //\r
   // Dhcp(), Discover(), and Mtftp() set the IP filter, and return with the IP\r
   // receive filter list emptied and the filter set to EFI_PXE_BASE_CODE_IP_FILTER_STATION_IP.\r
@@ -1093,7 +1093,7 @@ EfiPxeBcUdpWrite (
     DoNotFragment = TRUE;\r
   }\r
 \r
-  if (!Mode->UsingIpv6 && GatewayIp != NULL && Mode->SubnetMask.Addr[0] != 0 && \r
+  if (!Mode->UsingIpv6 && GatewayIp != NULL && Mode->SubnetMask.Addr[0] != 0 &&\r
       !NetIp4IsUnicast (NTOHL (GatewayIp->Addr[0]), EFI_NTOHL(Mode->SubnetMask))) {\r
     //\r
     // Gateway is provided but it's not a unicast IPv4 address, while it will be ignored for IPv6.\r
@@ -1659,13 +1659,13 @@ EfiPxeBcSetIpFilter (
     //\r
     Udp4Cfg = &Private->Udp4CfgData;\r
     if ((AcceptPromiscuous != Udp4Cfg->AcceptPromiscuous)   ||\r
-         (AcceptBroadcast != Udp4Cfg->AcceptBroadcast)     || MultiCastUpdate) {\r
+        (AcceptBroadcast != Udp4Cfg->AcceptBroadcast)     || MultiCastUpdate) {\r
       //\r
       // Clear the UDP4 instance configuration, all joined groups will be left\r
       // during the operation.\r
       //\r
       Private->Udp4Read->Configure (Private->Udp4Read, NULL);\r
-  \r
+\r
       //\r
       // Configure the UDP instance with the new configuration.\r
       //\r
@@ -1675,7 +1675,7 @@ EfiPxeBcSetIpFilter (
       if (EFI_ERROR (Status)) {\r
         return Status;\r
       }\r
-  \r
+\r
       //\r
       // In not Promiscuous mode, need to join the new multicast group.\r
       //\r
@@ -1704,7 +1704,7 @@ EfiPxeBcSetIpFilter (
       // during the operation.\r
       //\r
       Private->Udp6Read->Configure (Private->Udp6Read, NULL);\r
-  \r
+\r
       //\r
       // Configure the UDP instance with the new configuration.\r
       //\r
@@ -1713,7 +1713,7 @@ EfiPxeBcSetIpFilter (
       if (EFI_ERROR (Status)) {\r
         return Status;\r
       }\r
-  \r
+\r
       //\r
       // In not Promiscuous mode, need to join the new multicast group.\r
       //\r
@@ -2023,13 +2023,13 @@ EfiPxeBcSetStationIP (
   }\r
 \r
   if (!Mode->UsingIpv6 && NewStationIp != NULL) {\r
-    if (IP4_IS_UNSPECIFIED(NTOHL (NewStationIp->Addr[0])) || \r
+    if (IP4_IS_UNSPECIFIED(NTOHL (NewStationIp->Addr[0])) ||\r
         IP4_IS_LOCAL_BROADCAST(NTOHL (NewStationIp->Addr[0])) ||\r
         (NewSubnetMask != NULL && NewSubnetMask->Addr[0] != 0 && !NetIp4IsUnicast (NTOHL (NewStationIp->Addr[0]), NTOHL (NewSubnetMask->Addr[0])))) {\r
       return EFI_INVALID_PARAMETER;\r
     }\r
   }\r
-  \r
+\r
   if (!Mode->Started) {\r
     return EFI_NOT_STARTED;\r
   }\r
@@ -2058,7 +2058,7 @@ EfiPxeBcSetStationIP (
   if (!EFI_ERROR (Status)) {\r
     Private->IsAddressOk = TRUE;\r
   }\r
-  \r
+\r
 ON_EXIT:\r
   return Status;\r
 }\r
@@ -2343,14 +2343,14 @@ EfiPxeLoadFile (
   if (This == NULL || BufferSize == NULL || FilePath == NULL || !IsDevicePathEnd (FilePath)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
-  \r
+\r
   //\r
   // Only support BootPolicy\r
   //\r
   if (!BootPolicy) {\r
     return EFI_UNSUPPORTED;\r
   }\r
-  \r
+\r
   VirtualNic = PXEBC_VIRTUAL_NIC_FROM_LOADFILE (This);\r
   Private    = VirtualNic->Private;\r
   PxeBc      = &Private->PxeBc;\r
@@ -2403,7 +2403,7 @@ EfiPxeLoadFile (
   } else {\r
     //\r
     // The DHCP4 can have only one configured child instance so we need to stop\r
-    // reset the DHCP4 child before we return. Otherwise these programs which \r
+    // reset the DHCP4 child before we return. Otherwise these programs which\r
     // also need to use DHCP4 will be impacted.\r
     //\r
     if (!PxeBc->Mode->UsingIpv6) {\r