Split connection list into two lists:

- one list to handle all incoming/outgoing TCP connections
 - another list to handle all UDP connections

This will prevent race conditions.
This commit is contained in:
Guus Sliepen 2001-07-15 18:07:31 +00:00
parent b3074590b1
commit 319e0cb48e
4 changed files with 64 additions and 49 deletions

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: net.c,v 1.35.4.119 2001/07/15 14:21:12 guus Exp $
$Id: net.c,v 1.35.4.120 2001/07/15 18:07:31 guus Exp $
*/
#include "config.h"
@ -1113,7 +1113,7 @@ cp
return;
}
cl = lookup_connection(ntohl(from.sin_addr.s_addr), ntohs(from.sin_port));
cl = lookup_active(ntohl(from.sin_addr.s_addr), ntohs(from.sin_port));
if(!cl)
{