From owner-freebsd-net@FreeBSD.ORG Sat Apr 10 07:01:22 2004 Return-Path: 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 ADDB916A4CE for ; Sat, 10 Apr 2004 07:01:22 -0700 (PDT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69C6F43D1F for ; Sat, 10 Apr 2004 07:01:22 -0700 (PDT) (envelope-from vlm@netli.com) Received: (qmail 764 invoked by uid 84); 10 Apr 2004 14:01:22 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.200822 secs); 10 Apr 2004 14:01:22 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 10 Apr 2004 14:01:22 -0000 Message-ID: <4077FE82.7040308@netli.com> Date: Sat, 10 Apr 2004 07:02:42 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040307 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Knocke References: <001901c41eee$3f09c0b0$df5561d9@ALFA> <20040410120027.GC710@empiric.dek.spc.org> <003901c41f02$b31ec3b0$df5561d9@ALFA> In-Reply-To: <003901c41f02$b31ec3b0$df5561d9@ALFA> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re: [nwebe] How to track TCP socket variables? (cwnd, ssthresh) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2004 14:01:22 -0000 Knocke wrote: > thanks :-) I must admit that Stevens says sth about that tool. > > But there's still (at least) one thing I don't understand: how to enable > socket debbuging? Is it possible only when socket is created (fe: by some > special system call) ? If yes, does it mean that it depends on the > aplication itself, if it opens its sockets for debbuging and/or if it gives > a command line switch command to turn it on? Yes, the application must use setsockopt() call to enable socket debugging. If an application does not turn it on, you can create a simple library which would substitute socket() with socket()+setsockopt(SO_DEBUG) pair, and attach it to the application via LD_PRELOAD. > hk > > > ----- Original Message ----- > From: "Bruce M Simpson" > To: "Knocke" > Cc: > Sent: Saturday, April 10, 2004 2:00 PM > Subject: Re: [nwebe] How to track TCP socket variables? (cwnd, ssthresh) > > > >>On Sat, Apr 10, 2004 at 01:23:24PM +0200, Knocke wrote: >> >>>Could somebode give me hint what to do? Is there any tool to connect to > > existing TCP socket and dump its state per each segment sent or received? Or > any other way to achive the goal? It could be also a kind of dedicated > benchmark tool (lice ttcp) that comes togehter with what i need, I don't > necesarly need to track existing sshd or apache owned sockets. > >>man 8 trpt >> >>BMS >>_______________________________________________ >>freebsd-net@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-net >>To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> >>__________ NOD32 Informacje 1.713 (20040409) __________ >> >>Wiadomosc zostala sprawdzona przez System Antywirusowy NOD32 >>http://www.nod32.com lub http://www.nod32.pl >> >> > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" -- Lev Walkin vlm@netli.com