U r right, i ahould declare my variable in linux/sysctl.h
So kernel recompilation was successfull after i corrected my mistake.
But my new kernel variable is not working (error in my variable)
All what i did is declaring my vaiable at the end of the enum containing net_ipv4 variables such as sysctl_tcp_timestamps
Then i defined my var in sysctl_net_ipv4.c (code in first msg) and i used my var in other codes
I didnt find my varible in /etc/sysctl.conf and add to this other sysctl variables e.g. Tcp_timestamps are not working after recompilation ( they were working before)
Am i missing anything in defining my variable? What r the steps to declare sysctl varable?
Can the problem be that in sysctl.h we must give a number to the variable (in the enum) and sysctl_net_ipv4.c I must take in consideration the order to declare my var??
Thanks in advance, i hope i were enough clear in my explanation