2003-02-16 22:09:22

by yi

[permalink] [raw]
Subject: Getting the value of tcp window size

Hi,

Using the kernel facility such as system call or something, is there any
method of getting the value of tcp window size?

If not, I just want to know whether I have to add a system call of doing
that or not.

Thanks.


2003-02-16 22:58:19

by Patrick McHardy

[permalink] [raw]
Subject: Re: Getting the value of tcp window size

yi wrote:

> Hi,
>
> Using the kernel facility such as system call or something, is there
> any method of getting the value of tcp window size?
>
> If not, I just want to know whether I have to add a system call of
> doing that or not.
>
> Thanks.


look at the ss utility which comes with iproute2 in the misc directory.
it can display lots of information,
other stuff can easily be added to net/ipv4/tcp_diag.c.

Bye,
Patrick