[FreeBSD-6.1RELEASE] tcp in TIME_WAIT state
Andre Oppermann
andre at freebsd.org
Mon Jun 19 14:14:54 UTC 2006
Blue wrote:
> Hi, all:
>
> In function tcp_timewait(), which will be called when receiving a
> segment as current TCP state at TIME_WAIT. However, in the body of the
> function definition, it simply goes to "drop" before generating RST or
> RST/ACK towards the unicast source. Is the behavior correct because the
> followed codes (from line 2228 to line 3261) would never be reached!
Yes, this code was never used. After the 'goto drop;' there used
to be a 'reset:' label. However it was never used and got lost
in rev. 1.254 because of compiler warnings. The code is related
to the comment earlier in the function: "NOTE: for FIN_WAIT_2 (to
be added later), must validate sequence number before accepting RST".
I agree that is very confusing and I shall put an appropriate comment
next to it.
--
Andre
More information about the freebsd-net
mailing list