From owner-freebsd-mobile Tue Feb 26 21:53:26 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id B9D8237B405 for ; Tue, 26 Feb 2002 21:53:20 -0800 (PST) Received: from localhost (root@localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.2/8.12.2) with ESMTP id g1R5rHZR031622 for ; Wed, 27 Feb 2002 16:23:18 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Subject: Killing TCP connections before suspend From: "Daniel O'Connor" To: freebsd-mobile@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0.2 Date: 27 Feb 2002 17:23:17 +1130 Message-Id: <1014789198.39862.28.camel@chowder.gsoft.com.au> Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have my laptop doing suspend to disk now (and everything working on resume :) and I was thinking it would be really useful to be able to reset all TCP connections that don't go over localhost. ie you run a magical program in rc.suspend and it toasts all of your TCP connections so your applications are forced to reconnect, otherwise what happens is they hang around for a while and you have to manually kill them etc.. Anyone have any ideas for how this could be implemented? I have tried tcpkill from the dsniff port but it can only work when traffic for the connection in question gets captured. Would it be possible to use libkvm to grovel around? --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message