From owner-freebsd-current Fri Aug 23 18:06:29 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA09591 for current-outgoing; Fri, 23 Aug 1996 18:06:29 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA09567; Fri, 23 Aug 1996 18:06:24 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id KAA24031; Sat, 24 Aug 1996 10:34:55 +0930 From: Michael Smith Message-Id: <199608240104.KAA24031@genesis.atrad.adelaide.edu.au> Subject: Re: cvs commit: src/sys/netinet in.h ip_fw.h ip_input.c ip_output.c To: julian@whistle.com (Julian Elischer) Date: Sat, 24 Aug 1996 10:34:55 +0930 (CST) Cc: terry@lambert.org, pst@jnx.com, sos@FreeBSD.org, rgrimes@GndRsh.aac.dev.com, archie@whistle.com, current@FreeBSD.org In-Reply-To: <321E04A8.4A7B7C1D@whistle.com> from "Julian Elischer" at Aug 23, 96 12:21:12 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Julian Elischer stands accused of saying: > > Terry Lambert wrote: > > > > > By not agressive enough, I mean I think you have the right idea, but the > > > syntax > > > for the hook should be something like: > > > > > > for (hook = iphooks.ipinput.lh_first; hook; hook = hook->next) { > > > if (!(*hook)(IP_INPUT, &m, &ip)) > > > break; > > > } > > how can you order them? > say, I want encrypted NAT.. I need to do the NAT first, because NAT > peaks inside the packets for hints on ftp transfers etc. The objects on the list should be structures which contain identifiers for the TOS provided by the filter; then you supply the insert routine with a list of TOS' that you want to be before and after. Usual stuff, as pst suggested. > julian -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[