mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-21 12:44:50 +02:00
Fixed one bug when calculating timeout value in timeout function for UDP protocol.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6763 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
abf1c3e47f
commit
0891b0a2cb
@ -451,13 +451,13 @@ Udp4CheckTimeout (
|
|||||||
//
|
//
|
||||||
Wrap = NET_LIST_USER_STRUCT (WrapEntry, UDP4_RXDATA_WRAP, Link);
|
Wrap = NET_LIST_USER_STRUCT (WrapEntry, UDP4_RXDATA_WRAP, Link);
|
||||||
|
|
||||||
if (Wrap->TimeoutTick <= UDP4_TIMEOUT_INTERVAL / 1000) {
|
if (Wrap->TimeoutTick <= UDP4_TIMEOUT_INTERVAL / 10) {
|
||||||
//
|
//
|
||||||
// Remove this RxData if it timeouts.
|
// Remove this RxData if it timeouts.
|
||||||
//
|
//
|
||||||
Udp4RecycleRxDataWrap (NULL, (VOID *) Wrap);
|
Udp4RecycleRxDataWrap (NULL, (VOID *) Wrap);
|
||||||
} else {
|
} else {
|
||||||
Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 1000;
|
Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user