From 48bd50c5a1e4c31818bba1d2ce88f9270b2f2440 Mon Sep 17 00:00:00 2001 From: vanjeff Date: Mon, 1 Dec 2008 01:59:45 +0000 Subject: 1. Fixed issue when calculating timeout value in timeout function in MNP module. 2. Added and refine some comments. 3. Enable UefiPxeBc Module to accept all broadcast packets for UDP Read&Write interface. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6781 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c') diff --git a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c index 4c7a6fdc33..bda2b36c31 100644 --- a/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c +++ b/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Impl.c @@ -451,13 +451,16 @@ Udp4CheckTimeout ( // Wrap = NET_LIST_USER_STRUCT (WrapEntry, UDP4_RXDATA_WRAP, Link); - if (Wrap->TimeoutTick <= UDP4_TIMEOUT_INTERVAL / 10) { + // + // TimeoutTick unit is ms, MNP_TIMEOUT_CHECK_INTERVAL unit is 100ns. + // + if (Wrap->TimeoutTick <= (UDP4_TIMEOUT_INTERVAL / 10)) { // // Remove this RxData if it timeouts. // Udp4RecycleRxDataWrap (NULL, (VOID *) Wrap); } else { - Wrap->TimeoutTick -= UDP4_TIMEOUT_INTERVAL / 10; + Wrap->TimeoutTick -= (UDP4_TIMEOUT_INTERVAL / 10); } } } -- cgit v1.2.3