public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Killing a network connection
@ 2007-10-15 18:40 Stefan Monnier
  2007-10-15 22:12 ` Andi Kleen
  2007-10-18  0:44 ` Bill Davidsen
  0 siblings, 2 replies; 7+ messages in thread
From: Stefan Monnier @ 2007-10-15 18:40 UTC (permalink / raw)
  To: linux-kernel

[ I suppose this is not the best place to ask this, but
  comp.os.linux.networking couldn't come up with a good answer and I can't
  think of any intermediate step between these two groups ;-( ]

I'd like (as root, obviously) to kill some of the TCP connections visible
in netstat.  I've found `tcpkill' and `cutter' but `cutter' only kills TCP
connections that go *though* the machine (in my case, the machine is not
a router, so there aren't any such thu connections anyway) and `tcpkill'
can only kill the conection after seeing some activity (and it doesn't know
to exit when the connections are killed).  Also those 2 tools seem
just overkill.
I'd like simply to do (metaphorically)

  rm /tcpfs/<foo>

so it should not need to involve *any* use of the TCP protocol: just kill it
locally, warn the associated process(es), free the resources and let the
other end deal with it.

The main use for me is to deal with dangling connections due to taking
network interfaces up&down with different IP addresses (typically the wlan0
interface where the IP is different because I've modes from an AP to
another).  Of course, maybe there's another way to solve this particular
problem, in case I'd like to hear about it as well.


        Stefan


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <9eFcS-It-3@gated-at.bofh.it>]

end of thread, other threads:[~2007-10-18  0:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-15 18:40 Killing a network connection Stefan Monnier
2007-10-15 22:12 ` Andi Kleen
2007-10-16  3:15   ` Stefan Monnier
2007-10-18  0:44 ` Bill Davidsen
     [not found] <9eFcS-It-3@gated-at.bofh.it>
     [not found] ` <9eGsi-2Sr-35@gated-at.bofh.it>
2007-10-15 23:50   ` Bodo Eggert
2007-10-16  3:42     ` Stefan Monnier
2007-10-16  9:31     ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox