From owner-freebsd-hackers Mon Dec 30 16:12:16 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA00812 for hackers-outgoing; Mon, 30 Dec 1996 16:12:16 -0800 (PST) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA00798 for ; Mon, 30 Dec 1996 16:12:09 -0800 (PST) Received: from current1.whistle.com (current1.whistle.com [207.76.205.22]) by alpo.whistle.com (8.8.2/8.8.2) with SMTP id QAA14044; Mon, 30 Dec 1996 16:07:22 -0800 (PST) Message-ID: <32C858F6.41C67EA6@whistle.com> Date: Mon, 30 Dec 1996 16:06:14 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Julian Assange CC: hackers@freebsd.org, archie@alpo.whistle.com Subject: Re: divert code not thread/smp compatible References: <199612301928.GAA29162@profane.iq.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Julian Assange wrote: I agree.. this should be changed.. I'll point it out to archie.. he shouldbe back tomorrow. thanks. julian (E) > > /* > * ip_input() and ip_output() set this secret value before calling us to > * let us know which divert port to divert a packet to; this is done so > * we can use the existing prototype for struct protosw's pr_input(). > * This is stored in host order. > */ > u_short ip_divert_port; > > /* > * We set this value to a non-zero port number when we want the call to > * ip_fw_chk() in ip_input() or ip_output() to ignore ``divert '' > * chain entries. This is stored in host order. > */ > u_short ip_divert_ignore; > > Is this an acceptable trick in the FreeBSD kernel, passing parameters > with global variables? > > -Julian