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
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
}\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
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
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
//\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
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
// 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
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
}\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
if (!EFI_ERROR (Status)) {\r
Private->IsAddressOk = TRUE;\r
}\r
- \r
+\r
ON_EXIT:\r
return Status;\r
}\r
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
} 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