Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2013 20:54:26 +0200
From:      Nikos Vassiliadis <nvass@gmx.com>
To:        net@freebsd.org
Cc:        John Baldwin <jhb@freebsd.org>
Subject:   Re: [PATCH] Allow tcpdrop to use non-space separators
Message-ID:  <51096C62.2060602@gmx.com>
In-Reply-To: <201301291205.41301.jhb@freebsd.org>
References:  <201301291205.41301.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/29/2013 7:05 PM, John Baldwin wrote:
> A common use case I have at work is to find a busted connection using netstat
> -n or sockstat and then want to tcpdrop it.  However, tcpdrop requires spaces

Hi,

While you are there, could you please review this?
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/151996

It adds an interactive use flag(-i) so the user can drop
connections interactively:
> lab# tcpdrop -ia
> drop 192.168.73.195 16456 195.167.100.39 80?
> drop 192.168.73.195 37746 195.167.100.39 80? y
> 192.168.73.195 37746 195.167.100.39 80: dropped
> drop 192.168.73.195 41749 195.167.100.39 80? yes
> 192.168.73.195 41749 195.167.100.39 80: dropped
> drop 192.168.73.60 22 192.168.73.192 60763?
> drop 192.168.73.60 22 192.168.73.192 60585?

Thanks,

Nikos




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51096C62.2060602>