problem in define a sysctl tcp variable
Hello,
I am using a debian linux 2.6.32 machine.
I am changing the tcp stack in <kernel to add a new tcp option.
So I defined a variable similat to tcp_timestamps called tcp_variable.
I defined it in tcp.h, and in sysctl_net_ipv4.c, i added similarly to tcp_timzstamps this code:
static struct ctl_table ipv4table[]={
...
{ .ctl_name = NET_IPV4_TCP_VARIABLE,
.proc_name = "tcp_variable",
.data = &sysctl_tcp_wing,
...}
I also defined it in sysctl.h in the tcp enum at the end (same enum with tcp timestamps).
Then i used this sysctl variable in tcp_output..
The problem is that my variable didn't function and i had en error in kernal variables after recompilation. Add to this other variables aren't working such as tcp_timestamps...
what is missing in my method to create the variable? how can i correct it?
thanks in advance
Last edited by hayf; 08-26-2011 at 09:57 AM.
|