From owner-freebsd-current Fri Aug 23 13:27:04 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA07240 for current-outgoing; Fri, 23 Aug 1996 13:27:04 -0700 (PDT) Received: from red.jnx.com (ppp-206-170-2-37.sntc01.pacbell.net [206.170.2.37]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA07218; Fri, 23 Aug 1996 13:26:58 -0700 (PDT) Received: from base.jnx.com (base.jnx.com [208.197.169.238]) by red.jnx.com (8.7.5/8.7.3) with ESMTP id NAA19379; Fri, 23 Aug 1996 13:26:56 -0700 (PDT) Received: from base.jnx.com (localhost.jnx.com [127.0.0.1]) by base.jnx.com (8.7.5/8.7.3) with ESMTP id NAA00417; Fri, 23 Aug 1996 13:26:55 -0700 (PDT) Message-Id: <199608232026.NAA00417@base.jnx.com> To: Julian Elischer cc: Terry Lambert , sos@FreeBSD.org, rgrimes@GndRsh.aac.dev.com, archie@whistle.com, current@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet in.h ip_fw.h ip_input.c ip_output.c In-reply-to: Your message of "Fri, 23 Aug 1996 12:21:12 PDT." <321E04A8.4A7B7C1D@whistle.com> Date: Fri, 23 Aug 1996 13:26:55 -0700 From: Paul Traina Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk How do you order ANYTHING on a linked list. Just do it(tm). From: Julian Elischer Subject: Re: cvs commit: src/sys/netinet in.h ip_fw.h ip_input.c ip_output.c 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. julian