[PATCH] Allow tcpdrop to use non-space separators

Nikos Vassiliadis nvass at gmx.com
Wed Jan 30 18:54:36 UTC 2013


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



More information about the freebsd-net mailing list