TIME_WAIT state check in in_pcblookup_local()
Blue
Susan.Lan at zyxel.com.tw
Tue Jun 20 06:02:59 UTC 2006
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
More information about the freebsd-net
mailing list