From owner-freebsd-net@FreeBSD.ORG Fri Jul 20 15:55:01 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F53D16A418 for ; Fri, 20 Jul 2007 15:55:01 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from mail.digitalfreaks.org (arbitor.digitalfreaks.org [216.151.95.158]) by mx1.freebsd.org (Postfix) with ESMTP id 1EA5013C461 for ; Fri, 20 Jul 2007 15:55:01 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: by mail.digitalfreaks.org (Postfix, from userid 1022) id 53D07170E9; Fri, 20 Jul 2007 11:37:44 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.digitalfreaks.org (Postfix) with ESMTP id 521F4170B8 for ; Fri, 20 Jul 2007 11:37:44 -0400 (EDT) Date: Fri, 20 Jul 2007 11:37:44 -0400 (EDT) From: "Brian A. Seklecki" X-X-Sender: lavalamp@arbitor.digitalfreaks.org To: freebsd-net@freebsd.org Message-ID: <20070720113322.Q62485@arbitor.digitalfreaks.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: checking SO_ACCEPTFILTER with netstat(1)/sockstat(1) 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: Fri, 20 Jul 2007 15:55:01 -0000 Neither appear to support extracting the setsockopt(2) list. lsof(8) to the rescue: $ sudo lsof -T f | grep -i ACCEPTF | more httpd 38396 root 3u IPv6 0xc2824378 0t0 TCP *:http (SO=ACCEPTCONN,ACCEPTFILTER,KEEPALIVE,PQLEN=0,QLEN=0,QLIM= ^^^^^^^^ 128,RCVBUF=262144,REUSEADDR,SNDBUF=262144 TF=MSS=1024,NODELAY,REQ_SCALE,REQ_TSTMP) A little bit more definitive than "Oh hey apache stopped complaining." Any other way? l8* -lava (Brian A. Seklecki - Pittsburgh, PA, USA) http://www.spiritual-machines.org/ "Guilty? Yeah. But he knows it. I mean, you're guilty. You just don't know it. So who's really in jail?" ~Maynard James Keenan