public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: yi <yi@ece.utexas.edu>
To: linux-kernel@vger.kernel.org
Cc: yi@ece.utexas.edu
Subject: TCP congestion window
Date: Mon, 21 Jul 2003 17:07:02 -0500	[thread overview]
Message-ID: <3F1C6406.5040009@ece.utexas.edu> (raw)

Dear all,
First, I apologize you for posing this message although I'm not on the list.

I have some questions. I made the following system call for getting tcp 
cwnd size of ongoing connection. However, I am always getting the value 
of "2", which is the initial tcp cwnd size, I think. What I really want 
to do is to trace tcp cwnd size when I download some big file using 
"wget"'s http file downloader. For it, I added a new system call shown 
below and modified the wget source code.

Please cc to me personally in reply. Thanks in advance.

Best Regards,
Yung Yi.

---------------------------------------------------------------------------
asmlinkage int sys_get_winsize(int sockfd)
{
    struct socket *sock;
    struct sock *sk;
    int err;
    sock = sockfd_lookup(sockfd, &err);

    if (!sock)
        return -1;

    sk = sock->sk;
    return sk->tp_pinfo.af_tcp.snd_cwnd;
}



             reply	other threads:[~2003-07-21 21:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-21 22:07 yi [this message]
2003-07-22  5:18 ` TCP congestion window Nagendra Singh Tomar
2003-07-22  6:26 ` Pekka Pietikainen
2003-07-22  6:38   ` Glen Turner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F1C6406.5040009@ece.utexas.edu \
    --to=yi@ece.utexas.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox