From owner-freebsd-net@FreeBSD.ORG Thu Dec 22 05:30:52 2005 Return-Path: X-Original-To: net@freebsd.org Delivered-To: freebsd-net@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3233E16A41F for ; Thu, 22 Dec 2005 05:30:52 +0000 (GMT) (envelope-from kelly@nttmcl.com) Received: from alicia.nttmcl.com (alicia.nttmcl.com [216.69.69.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6FE243D49 for ; Thu, 22 Dec 2005 05:30:51 +0000 (GMT) (envelope-from kelly@nttmcl.com) Received: from alicia.nttmcl.com (localhost.localdomain [127.0.0.1]) by alicia.nttmcl.com (8.13.4/8.13.4/Debian-3) with ESMTP id jBM5UpJp018371 for ; Wed, 21 Dec 2005 21:30:51 -0800 Received: from localhost (kelly@localhost) by alicia.nttmcl.com (8.13.4/8.13.4/Submit) with ESMTP id jBM5Upc9018368 for ; Wed, 21 Dec 2005 21:30:51 -0800 X-Authentication-Warning: alicia.nttmcl.com: kelly owned process doing -bs Date: Wed, 21 Dec 2005 21:30:51 -0800 (PST) From: Kelly Yancey To: net@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Please review: patch to add FAST_IPSEC stats to netstat X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Dec 2005 05:30:52 -0000 Here is a patch to display stats gathered by the FAST_IPSEC stack: http://people.freebsd.org/~kbyanc/netstat-fastipsec.diff If you have built your kernel with FAST_IPSEC, then without this patch "netstat -s -p ipsec" displays nothing. With this patch, it will display the generic ipsec stats gathered by FAST_IPSEC (which are different than the stats collected by the KAME stack). In addition, stats for the "esp", "ah", and "ipcomp" protocols are also supported. Originally, this functionality was added in-house by Matt Titus to FreeBSD 4.10 and I have ported it to -current as of today. I've tried to verify I didn't make any regressions to the -current version of netstat in the merge process, but I would appreciate any review and/or feedback I can get. Barring any objections, I plan on committing this in 1 week (on the 28th). Thank you, Kelly -- Kelly Yancey - kbyanc@{posi.net,FreeBSD.org} - kelly@nttmcl.com