Re: FIN_WAIT_[1,2] and LAST_ACK
From: Chuck Swiger (cswiger_at_mac.com)
Date: 04/05/04
- Previous message: Mike Silbersack: "Re: FIN_WAIT_[1,2] and LAST_ACK"
- In reply to: Brandon Erhart: "Re: FIN_WAIT_[1,2] and LAST_ACK"
- Next in thread: Brandon Erhart: "Re: FIN_WAIT_[1,2] and LAST_ACK"
- Reply: Brandon Erhart: "Re: FIN_WAIT_[1,2] and LAST_ACK"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 04 Apr 2004 18:46:11 -0400 To: Brandon Erhart <berhart@ErhartGroup.COM>
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 _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: Mike Silbersack: "Re: FIN_WAIT_[1,2] and LAST_ACK"
- In reply to: Brandon Erhart: "Re: FIN_WAIT_[1,2] and LAST_ACK"
- Next in thread: Brandon Erhart: "Re: FIN_WAIT_[1,2] and LAST_ACK"
- Reply: Brandon Erhart: "Re: FIN_WAIT_[1,2] and LAST_ACK"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|