[nwebe] How to track TCP socket variables? (cwnd, ssthresh)
Lev Walkin
vlm at netli.com
Sat Apr 10 07:01:22 PDT 2004
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" <bms at spc.org>
> To: "Knocke" <knockefreebsd at o2.pl>
> Cc: <freebsd-net at freebsd.org>
> 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 at freebsd.org mailing list
>>http://lists.freebsd.org/mailman/listinfo/freebsd-net
>>To unsubscribe, send any mail to "freebsd-net-unsubscribe at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
--
Lev Walkin
vlm at netli.com
More information about the freebsd-net
mailing list