From owner-freebsd-hackers Mon Jun 3 21:04:58 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA11986 for hackers-outgoing; Mon, 3 Jun 1996 21:04:58 -0700 (PDT) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA11981 for ; Mon, 3 Jun 1996 21:04:57 -0700 (PDT) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id VAA01778; Mon, 3 Jun 1996 21:04:26 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma001776; Mon Jun 3 21:04:05 1996 Received: (from archie@localhost) by bubba.whistle.com (8.6.12/8.6.12) id VAA06798; Mon, 3 Jun 1996 21:04:05 -0700 From: Archie Cobbs Message-Id: <199606040404.VAA06798@bubba.whistle.com> Subject: Re: NULL interface field in ip_fw_chk To: ormonde@trem.cnt.org.br (Rodrigo Ormonde) Date: Mon, 3 Jun 1996 21:04:05 -0700 (PDT) Cc: freebsd-hackers@freebsd.org In-Reply-To: <9605221807.AA08687@trem.cnt.org.br> from "Rodrigo Ormonde" at May 22, 96 03:07:11 pm X-Mailer: ELM [version 2.4 PL24] 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 > int ip_fw_chk(mbuf *m, struct ip *ip, struct ifnet *rif, ... > > Looking into the code of ip_fw_chk, I realise that sometimes this function > is called with rif = NULL. > > My question is: does anybody knows why and under what circunstances the > ip_fw_chk is called with a NULL pointer in the interface field ? (the > ip_fw_chk function is called only by ip_input.c) Perhaps when a packet didn't come in on any interface, i.e., it was generated locally (for example, a kernel generated ICMP). -Archie ___________________________________________________________________________ Archie L. Cobbs, archie@whistle.com * Whistle Communications Corporation