From owner-freebsd-net@FreeBSD.ORG Wed Jan 30 16:30:47 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0E5C4F3A for ; Wed, 30 Jan 2013 16:30:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id E098A71B for ; Wed, 30 Jan 2013 16:30:46 +0000 (UTC) Received: from pakbsde14.localnet (unknown [38.105.238.108]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3A5EEB979; Wed, 30 Jan 2013 11:30:46 -0500 (EST) From: John Baldwin To: freebsd-net@freebsd.org Subject: Re: [PATCH] Allow tcpdrop to use non-space separators Date: Wed, 30 Jan 2013 11:14:55 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p22; KDE/4.5.5; amd64; ; ) References: <201301291205.41301.jhb@freebsd.org> <20130129231042.52622.qmail@f5-external.bushwire.net> In-Reply-To: <20130129231042.52622.qmail@f5-external.bushwire.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201301301114.55770.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 30 Jan 2013 11:30:46 -0500 (EST) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jan 2013 16:30:47 -0000 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