From owner-freebsd-hackers Sat May 16 11:52:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA20164 for freebsd-hackers-outgoing; Sat, 16 May 1998 11:52:51 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA20152 for ; Sat, 16 May 1998 11:52:45 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id LAA11984; Sat, 16 May 1998 11:52:44 -0700 (PDT) (envelope-from jdp) Message-Id: <199805161852.LAA11984@austin.polstra.com> To: sumit@ee.tamu.edu Subject: Re: how to add a system call In-Reply-To: <199805151650.LAA07873@eesun3.tamu.edu> References: <199805151650.LAA07873@eesun3.tamu.edu> Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Date: Sat, 16 May 1998 11:52:44 -0700 From: John Polstra Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199805151650.LAA07873@eesun3.tamu.edu>, Sumit Gupta 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