Date: Sun, 04 Apr 2004 17:10:48 -0600 From: Brandon Erhart <berhart@ErhartGroup.COM> To: Chuck Swiger <cswiger@mac.com> Cc: freebsd-net@freebsd.org Subject: Re: FIN_WAIT_[1,2] and LAST_ACK Message-ID: <6.0.2.0.2.20040404171017.01c764d8@mx1.erhartgroup.com> In-Reply-To: <40709033.9010301@mac.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> <40709033.9010301@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Chuck, That worked perfectly :) Thank you all so much for your help. I'm sure I'll be back with more questions during the course of this project! Brandon At 04:46 PM 4/4/2004, you wrote: >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?6.0.2.0.2.20040404171017.01c764d8>