Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 1996 06:28:55 +1100 (EST)
From:      Julian Assange <proff@iq.org>
To:        hackers@freebsd.org
Subject:   divert code not thread/smp compatible
Message-ID:  <199612301928.GAA29162@profane.iq.org>

next in thread | raw e-mail | index | archive | help

/*
 * 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 <port>''
 * 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 <proff@iq.org>



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