summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c
diff options
context:
space:
mode:
Diffstat (limited to 'MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c')
-rw-r--r--MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c
index 9532ca8f47..98a22a77b4 100644
--- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c
+++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Io.c
@@ -1,6 +1,6 @@
/** @file
EFI DHCP protocol implementation.
-
+
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -41,7 +41,7 @@ DhcpInitRequest (
// Clear initial time to make sure that elapsed-time is set to 0 for first Discover or REQUEST message.
//
DhcpSb->ActiveChild->ElaspedTime= 0;
-
+
if (DhcpSb->DhcpState == Dhcp4Init) {
DhcpSetState (DhcpSb, Dhcp4Selecting, FALSE);
Status = DhcpSendMessage (DhcpSb, NULL, NULL, DHCP_MSG_DISCOVER, NULL);
@@ -1381,13 +1381,13 @@ DhcpSendMessage (
}
ASSERT (UdpIo != NULL);
-
+
Status = UdpIoSendDatagram (
- UdpIo,
- Wrap,
- &EndPoint,
- NULL,
- DhcpOnPacketSent,
+ UdpIo,
+ Wrap,
+ &EndPoint,
+ NULL,
+ DhcpOnPacketSent,
DhcpSb
);
@@ -1509,7 +1509,7 @@ DhcpOnTimerTick (
if (Instance != NULL && Instance->ElaspedTime < 0xffff) {
Instance->ElaspedTime++;
}
-
+
//
// Check the retransmit timer
//
@@ -1531,7 +1531,7 @@ DhcpOnTimerTick (
goto ON_EXIT;
}
}
-
+
if (++DhcpSb->CurRetry < DhcpSb->MaxRetries) {
//
// Still has another try
@@ -1570,7 +1570,7 @@ DhcpOnTimerTick (
goto END_SESSION;
}
}
-
+
//
// If an address has been acquired, check whether need to
// refresh or whether it has expired.
@@ -1602,8 +1602,8 @@ DhcpOnTimerTick (
if (Instance != NULL) {
Instance->ElaspedTime= 0;
- }
-
+ }
+
Status = DhcpSendMessage (
DhcpSb,
DhcpSb->Selected,
@@ -1626,7 +1626,7 @@ DhcpOnTimerTick (
if (Instance != NULL) {
Instance->ElaspedTime= 0;
- }
+ }
Status = DhcpSendMessage (
DhcpSb,
@@ -1648,7 +1648,7 @@ ON_EXIT:
//
NET_LIST_FOR_EACH_SAFE (Entry, Next, &DhcpSb->Children) {
Instance = NET_LIST_USER_STRUCT (Entry, DHCP_PROTOCOL, Link);
-
+
if ((Instance != NULL) && (Instance->Token != NULL)) {
Instance->Timeout--;
if (Instance->Timeout == 0) {