From owner-freebsd-net Fri Apr 26 12: 4: 3 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.wrs.com (unknown-1-11.windriver.com [147.11.1.11]) by hub.freebsd.org (Postfix) with ESMTP id D100D37B41C for ; Fri, 26 Apr 2002 12:03:50 -0700 (PDT) Received: from ala-tombila.wrs.com (tombila [147.11.38.16]) by mail.wrs.com (8.9.3/8.9.1) with ESMTP id MAA15826; Fri, 26 Apr 2002 12:01:55 -0700 (PDT) Message-Id: <5.1.0.14.2.20020426120422.030117b0@wrs.com> X-Sender: anandn@wrs.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 26 Apr 2002 12:06:31 -0700 To: "George V. Neville-Neil" , jayanth From: Anand Narayanan Subject: Re: Putting all PCBs into sysctl? Cc: Mike Silbersack , Alfred Perlstein , freebsd-net@FreeBSD.ORG In-Reply-To: <200204261748.g3QHmSV4016488@mail.meer.net> References: <20020426103451.B92949@yahoo-inc.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org George, I believe netstat already utilizes the sysctl API to get information about the TCP and UDP control blocks for state information. The modules for tcp and udp already contain sysctl backend routines that do this. Additionally, there is implementation for the ip_divertlist and the raw CBs as well. Are you referring to something in addition to these? -Anand At 10:48 AM 4/26/02, George V. Neville-Neil wrote: > > We have a sysctl that takes the four tuple as an argument, which can > > be got from netstat -an output. It is used only for deleting a > > connection not modifying it. > > > > for e.g > > sysctl net.inet.tcp.deleteconn="a.b.c.d:80:x.y.z.w:30000". > > > > netstat -Aan gives us the tcp control block address or the inpcb address > > depending on the type of socket. That could also be used for identifying > > the socket. > >Do you mean this is what you'd like or that it exists? I get: > ># sysctl net.inet.tcp.deleteconn="209.157.133.226.4296:216.136.204.21.80" >sysctl: unknown oid 'net.inet.tcp.deleteconn' ># > >when I try it. > >Later, >George > >-- >George V. Neville-Neil gnn@neville-neil.com >Neville-Neil Consulting www.neville-neil.com > >"I learn only to be contented." inscription at Ryoan-ji in Kyoto, Japan > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-net" in the body of the message ******************************** Anand Narayanan Wind River Systems. http://www.windriver.com ******************************** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message