FIN_WAIT_[1,2] and LAST_ACK

Brandon Erhart berhart at ErhartGroup.COM
Sun Apr 4 16:10:41 PDT 2004


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
>



More information about the freebsd-net mailing list