netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: "George P Nychis" <gnychis@cmu.edu>
Cc: netdev@vger.kernel.org
Subject: Re: 2.4 kern: want to print TCP cwnd with every packet
Date: Mon, 8 May 2006 10:31:23 -0700	[thread overview]
Message-ID: <20060508103123.38b10e56@localhost.localdomain> (raw)
In-Reply-To: <28365.128.237.227.255.1146925156.squirrel@128.237.227.255>

On Sat, 6 May 2006 10:19:16 -0400 (EDT)
"George P Nychis" <gnychis@cmu.edu> wrote:

> Hi,
> 
> I'd like to print the TCP cwnd for the sender, with every packet before it is sent out.  This way i could plot the sender window over time to show TCP's behavior in certain conditions.
> 
> I see in tcp_input.c several places where i could print the current window, but i'd have to add code in multiple places.  I was wondering if there is any 1 place, right before a packet is sent out, that i could printk() tp->snd_cwnd
> 
> Thanks!
> George
> 
> -
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Look at http://developer.osdl.org/shemminger/prototypes/tcpprobe.tar.gz

      reply	other threads:[~2006-05-08 17:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-06 14:19 2.4 kern: want to print TCP cwnd with every packet George P Nychis
2006-05-08 17:31 ` Stephen Hemminger [this message]

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=20060508103123.38b10e56@localhost.localdomain \
    --to=shemminger@osdl.org \
    --cc=gnychis@cmu.edu \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).