public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Dump the tcp_sock structure for every packet
@ 2006-05-28 17:49 Aaron Isotton
       [not found] ` <447AF09F.705@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Aaron Isotton @ 2006-05-28 17:49 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 1026 bytes --]

Hi,

I'm doing some kernel hacking to evaluate different TCP congestion
control algorithms in a WLAN mesh network.

I need to output some TCP parameters (such as window sizes et al) over
time; what I'd wish to do is outputting them to a character device
whenever a packet comes in/is sent.

I've written the device code, now I just need to output the parameters
using that device. The easiest way would be simply outputting the whole
tcp_sock structure to the device, and then reading it in from user space.

The problem is that I don't know where exactly in the TCP implementation
the packets are transmitted/received, i.e. where I should send the data
over to the device implementation.

The ideal case would of course be some kind of callback/hook function; I
imagine there might be something like this for the netfilter modules,
but I have no idea.

Can anybody help me with this?

Thank you,
Aaron
-- 
Aaron Isotton | http://www.isotton.com/
I'll give you a definite maybe. --Samuel Goldwyn


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Dump the tcp_sock structure for every packet
       [not found] ` <447AF09F.705@gmail.com>
@ 2006-05-29 13:58   ` Aaron Isotton
  0 siblings, 0 replies; 2+ messages in thread
From: Aaron Isotton @ 2006-05-29 13:58 UTC (permalink / raw)
  To: LKML; +Cc: Alan Menegotto

[-- Attachment #1: Type: text/plain, Size: 367 bytes --]

Alan Menegotto wrote:
 > The last routine done in tcp is tcp_transmit_skb, which passes the skb
> down to the IP layer. See net/ipv4/tcp_output.c for details.

Ok, thank you very much. Is there some similar function for incoming
packets too?

Greetings,
Aaron
-- 
Aaron Isotton | http://www.isotton.com/
I'll give you a definite maybe. --Samuel Goldwyn


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-29 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-28 17:49 Dump the tcp_sock structure for every packet Aaron Isotton
     [not found] ` <447AF09F.705@gmail.com>
2006-05-29 13:58   ` Aaron Isotton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox