Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 May 1998 11:52:44 -0700
From:      John Polstra <jdp@polstra.com>
To:        sumit@ee.tamu.edu
Cc:        hackers@FreeBSD.ORG
Subject:   Re: how to add a system call
Message-ID:  <199805161852.LAA11984@austin.polstra.com>
In-Reply-To: <199805151650.LAA07873@eesun3.tamu.edu>
References:  <199805151650.LAA07873@eesun3.tamu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199805151650.LAA07873@eesun3.tamu.edu>,
Sumit Gupta  <sumit@ee.tamu.edu> wrote:

> This is probably a newbie question. In FreeBSD Release 2.2.2., I have
> added a global array in the /usr/src/sys/netinet/ip_input.c which
> I use for some IP level hacking (array of u_long). right now I have harcoded
> the values in the array but need to have a way to change/set the array
> entries in a running system.

It sounds like a job for sysctl.  I can't tell you the precise
details of how to use it, but a grep for SYSCTL in "src/sys/kern/*.c"
will turn up lots of examples.
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805161852.LAA11984>