[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding variables to sysctl...



Hi all,

	I wanna add a variable to the kernel so i can enable/disable some
tcp options i have created. So id like to do:

	sysctl -w net.inet.tcp.my_option = 1

I have added a definition for it in tcp_var.h, added one to TCPCTL_MAXID, and added en entry at the end of TCPCTL_NAMES.
I have also declared a int variable in tcp_var.h and a new case in tcp_sysctl().


	I know i'm missing something can anybody help me, should i
issue a call like SYSCTL_INT() somewhere?

Tanks you,

Karim.



Visit your host, monkey.org