Subject: Re: add new sysctl variable
To: susan steven <rs122@hotmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 04/01/2002 21:38:38
On Mon, Apr 01, 2002 at 10:13:18AM -0500, susan steven wrote:
> 
>  Hello. I worked on NetBSD 1.5.1(i386).I want to add a new sysctl variable 
> net.inet.tcp.myvariable to control whether to invoke my function. I added 
> entries for the new variables in tcp_var.h.
>  (#define TCPCTL_NAMES {
>                          ...
>                          {"myvriable",CTL_TYPE_INT}
>                           ...
>                          }
>   #define TCPCTL_VARIABLE {
>                            ...
>                            {1,0,&tcp_mynewvariable}
>                             ...
>                            }
> 
>   #define TCPCTL_MYNEWVARABLE 25
>   #define TCPCTL_MAXID        26 /*old value 25*/
>   extern int tcp_mynewvariavle;
> 
> I defined the new variable tcp_mynewvariable in tcp_subr.c. Then I 
> recompiled the
> kernel. After that I check out the /usr/basrsrc/sbin/sysctl using cvs and 
> recompile the sysctl.c in that directory. After I rebooted the machine, I 
> did not see any change. It seems that the new variable isn't existent.

Did you install the new tcp_var.h to /usr/include/netinet/ ?

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
--