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:
vanjeff 2008-11-27 09:46:01 +00:00
parent abf1c3e47f
commit 0891b0a2cb
1 changed files with 2 additions and 2 deletions

View File

@ -451,13 +451,13 @@ Udp4CheckTimeout (
//
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.
//
Udp4RecycleRxDataWrap (NULL, (VOID *) Wrap);
} else {
Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 1000;
Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 10;
}
}
}