| Author |
Message |
ValerioZ *nix forums beginner
Joined: 09 Feb 2005
Posts: 2
|
Posted: Wed Feb 09, 2005 3:13 pm Post subject:
Write on proc filesystem
|
|
|
Hi! I need to write on proc filesystem to enable a personal version of
tcp debug on fly. Do you know where I can find some documentation about
that?
Thanks.
ValerioZ |
|
| Back to top |
|
 |
joy *nix forums beginner
Joined: 24 Feb 2005
Posts: 6
|
Posted: Wed Feb 09, 2005 3:25 pm Post subject:
Re: Write on proc filesystem
|
|
|
ValerioZ wrote:
| Quote: | Hi! I need to write on proc filesystem to enable a personal version of
tcp debug on fly. Do you know where I can find some documentation about
that?
Thanks.
ValerioZ
|
in kernel source /net/ipv4/ here you find tcp stack.
But i think you have need to recompile all kernel ...
bye
peppe |
|
| Back to top |
|
 |
Bill Unruh *nix forums addict
Joined: 19 Feb 2005
Posts: 87
|
Posted: Wed Feb 09, 2005 4:41 pm Post subject:
Re: Write on proc filesystem
|
|
|
ValerioZ <valeriocNO@NOlibero.it> writes:
| Quote: | Hi! I need to write on proc filesystem to enable a personal version of
tcp debug on fly. Do you know where I can find some documentation about
that?
|
You can write on the proc filesystem. Many configuration options are
implimented just like that
echo 1>/proc/sys/net/ipv4/ip_forward
is how to switch on ip forwarding.
But since it is just a look into the kernel, the kernel option must allow
writing to it. |
|
| Back to top |
|
 |
ValerioZ *nix forums beginner
Joined: 09 Feb 2005
Posts: 2
|
Posted: Wed Feb 09, 2005 10:46 pm Post subject:
Re: Write on proc filesystem
|
|
|
Bill Unruh wrote:
| Quote: | You can write on the proc filesystem. Many configuration options are
implimented just like that
echo 1>/proc/sys/net/ipv4/ip_forward
is how to switch on ip forwarding.
But since it is just a look into the kernel, the kernel option must allow
writing to it.
|
Tanks, I've made a mistake, I need to "read" (Kernel side) on proc
filesystem. I would modify the tcp code to insert a little part which
show the debug option to user.
Thanks.
ValerioZ |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|