Date: Sun, 04 Apr 2004 18:46:11 -0400 From: Chuck Swiger <cswiger@mac.com> To: Brandon Erhart <berhart@ErhartGroup.COM> Cc: freebsd-net@freebsd.org Subject: Re: FIN_WAIT_[1,2] and LAST_ACK Message-ID: <40709033.9010301@mac.com> In-Reply-To: <6.0.2.0.2.20040404163034.01c82c80@mx1.erhartgroup.com> References: <6.0.2.0.2.20040404152043.01c83320@mx1.erhartgroup.com> <4070860F.6030701@mac.com> <6.0.2.0.2.20040404160622.01c84428@mx1.erhartgroup.com> <40708B96.4050905@mac.com> <6.0.2.0.2.20040404163034.01c82c80@mx1.erhartgroup.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40709033.9010301>