[PATCH] Allow tcpdrop to use non-space separators

Mark Delany markd-freebsd-net at bushwire.net
Tue Jan 29 23:17:24 UTC 2013


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.


Mark.


More information about the freebsd-net mailing list