lkml.org 
[lkml]   [2003]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: help in tcp/ip
On Thu, 29 May 2003, [iso-8859-1] mounir tahar abbes wrote:

> hello
> i want to modify the tcp_sendmsg in tcp.c for linux
> kernel 2.4.3
> in order to display the message sent and compress it
> -firs: i want to read the message sent and put it in a
> text file.
>

Get a copy of the tcpdump source-code and see how it's done.
You do __not__ read/write files inside the kernel. You use
an external process `daemon` that writes files containing
stuff that came from inside the kernel.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.067 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site