FIN_WAIT_[1,2] and LAST_ACK
Chuck Swiger
cswiger at mac.com
Sun Apr 4 15:46:26 PDT 2004
Brandon Erhart wrote:
> I want to explicitly get it out of those states, without any help from
> the other end. What must I modify to achieve this?
See tcp_usrclosed() in /usr/src/sys/netinet/tcp_usrreq.c. Replace that code
with something like (untested):
tp->t_state = TCPS_CLOSED;
tp = tcp_close(tp);
return tp;
...and you'll break your TCP/IP stack in the fashion you've asked for.
If other things break too, you can keep all of the pieces. :-)
--
-Chuck
More information about the freebsd-net
mailing list