Re: FIN_WAIT_[1,2] and LAST_ACK

From: Chuck Swiger (cswiger_at_mac.com)
Date: 04/05/04

  • Next message: Brandon Erhart: "Re: FIN_WAIT_[1,2] and LAST_ACK"
    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"
    

  • Next message: Brandon Erhart: "Re: FIN_WAIT_[1,2] and LAST_ACK"

    Relevant Pages

    • Re: modifying initrd.img for kickstarting RH9
      ... you have to modifiy isolinux/isolinux.bin and it will work. ... We use Red Hat on a cluster,> and I'm currently trying to modify how we've done things with 7.3 to work> with 9; but I'm stuck and am not sure how best to proceed. ... We use a> modified init and have been able to just unzip the ramdisk, mount it, fill> it up with libs and other goodies, change the size of the ramdisk, etc in> the past. ... > unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
      (RedHat)
    • RE: Need smart IDE for C/C++ in RH9
      ... to modify it in the head file, and all the files calling that function. ... Many many features which other IDE supports... ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ... osest> thing to the Visual C++ interface that you'll find for> Linux. ...
      (RedHat)
    • Re: lynx upgrade issue?
      ... ok, so it loads lynx now without incident, but it's still ... Some people would modify the file under /etc - but that's not necessary. ... The advantage to doing it that way, is less tinkering with installed files. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: source changes without kernel re-compiling
      ... (someway to make ordinary source files like tcp.c work ... > you modify will get compiled. ... > To unsubscribe from this list: ... Do you Yahoo!? ...
      (Linux-Kernel)
    • Re: edit the subject line of a thread?
      ... When replying to a mail/thread it is best not to modify the Subject ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)