From owner-freebsd-current Fri Aug 23 13:57:43 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA11730 for current-outgoing; Fri, 23 Aug 1996 13:57:43 -0700 (PDT) Received: from eel.dataplex.net (EEL.DATAPLEX.NET [199.183.109.245]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA11719 for ; Fri, 23 Aug 1996 13:57:37 -0700 (PDT) Received: from [199.183.109.242] (cod [199.183.109.242]) by eel.dataplex.net (8.6.11/8.6.9) with SMTP id PAA00216; Fri, 23 Aug 1996 15:57:32 -0500 X-Sender: rkw@shark.dataplex.net Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 23 Aug 1996 15:57:33 -0500 To: Paul Traina From: rkw@dataplex.net (Richard Wackerbarth) Subject: Re: cvs commit: src/sys/netinet in.h ip_fw.h ip_input.c ip_output.c Cc: current@FreeBSD.org Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk In response to the idea: > > for the hook should be something like: > > > > for (hook = iphooks.ipinput.lh_first; hook; hook = hook->next) { > > if (!(*hook)(IP_INPUT, &m, &ip)) > > break; > > } Terry Lamert asks: > Question: is there any particular reason this should be IP specific? To which Paul Traina replys: >Good point. It saves re-doing a lot of work (e.g. protocol classification) >if you do it in the IP stack, but there's nothing *forcing* it to be IP >specific. I suspect that Terry's point was that the hook mechanism need not be ip specific. Rather, any communications stack, for example appletalk, could use the same mechanism. I would anticipate that the filters would prefer to do their "type checking" at registration time and only register for those protocols that they are prepared to handle.