Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jun 2006 14:00:54 +0800
From:      Blue <Susan.Lan@zyxel.com.tw>
To:        freebsd-net@freebsd.org
Subject:   TIME_WAIT state check in in_pcblookup_local()
Message-ID:  <44978F16.9010005@zyxel.com.tw>

next in thread | raw e-mail | index | archive | help
Hi, All:

I have a doubt in  in_pcblookup_local() and in6_pcblookup_local()  
functions in in_pcb.c/in6_pcb.c in FreeBSD-6.1RELEASE. In v4 version 
(that is, in_pcblookup_local), the inp would be checked to see if the 
prospective port is used  in TCP  TIME_WAIT state. If so, it  will call 
tcp_twrecycleable() to see if recycling is possible. However, I noticed 
that in v6 version (that is, in6_pcblookup_local) would not do such 
examination. In my opinion, the check should be removed since the 
connection is still alive in TIME_WAIT state and the port number should 
be considered unavailable.

Best regards,

blue



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44978F16.9010005>