[PATCH] Allow tcpdrop to use non-space separators

John Baldwin jhb at freebsd.org
Wed Jan 30 16:30:47 UTC 2013


On Tuesday, January 29, 2013 6:10:42 pm Mark Delany wrote:
> On 29Jan13, John Baldwin allegedly 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 
> > between the address and port so I can't simply cut and paste from one terminal 
> > window into another to generate the tcpdrop command.  This patch adds support 
> > for having a decimal (netstat output) or colon (sockstat output)
> 
> Any thoughts on including '#' as a valid port delimiter? this is
> mentioned in http://tools.ietf.org/html/rfc5952 Section 6 as an
> (albeit lowly) option and it does have the benefit of avoiding both of
> the ip4v/v6 delimiters.

I'm not aware of any of the tools in the base system at least that use that
convention, so in terms of the original goal of making it easier to cut and
paste from the output of one program to the parameters to tcpdrop I don't
think it fits.

-- 
John Baldwin


More information about the freebsd-net mailing list