From owner-freebsd-hackers Mon Dec 30 11:30:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id LAA12877 for hackers-outgoing; Mon, 30 Dec 1996 11:30:05 -0800 (PST) Received: from profane.iq.org (profane.iq.org [203.4.184.217]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id LAA12825 for ; Mon, 30 Dec 1996 11:29:52 -0800 (PST) Received: (from proff@localhost) by profane.iq.org (8.8.4/8.8.2) id GAA29162 for hackers@freebsd.org; Tue, 31 Dec 1996 06:28:55 +1100 (EST) From: Julian Assange Message-Id: <199612301928.GAA29162@profane.iq.org> Subject: divert code not thread/smp compatible To: hackers@freebsd.org Date: Tue, 31 Dec 1996 06:28:55 +1100 (EST) X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk /* * 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