From owner-freebsd-net@FreeBSD.ORG Sat Aug 19 13:51:34 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E3E616A4DA for ; Sat, 19 Aug 2006 13:51:34 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9421243D4C for ; Sat, 19 Aug 2006 13:51:32 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id ACE2A5E87; Sat, 19 Aug 2006 17:51:31 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 8B48B5E68; Sat, 19 Aug 2006 17:51:31 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.6/8.13.6) id k7JDpXaT009405; Sat, 19 Aug 2006 17:51:33 +0400 (MSD) (envelope-from ru) Date: Sat, 19 Aug 2006 17:51:33 +0400 From: Ruslan Ermilov To: Rajkumar S Message-ID: <20060819135133.GC9271@rambler-co.ru> References: <64de5c8b0608190514l1c2241edj57b114997e01a8b2@mail.gmail.com> <20060819125550.GA8879@rambler-co.ru> <64de5c8b0608190635q1fe2c0c5oe5d258748c1c5c95@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mvpLiMfbWzRoNl4x" Content-Disposition: inline In-Reply-To: <64de5c8b0608190635q1fe2c0c5oe5d258748c1c5c95@mail.gmail.com> User-Agent: Mutt/1.5.12-2006-07-14 X-Virus-Scanned: No virus found Cc: freebsd-net@freebsd.org Subject: Re: ng_ip_input ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Aug 2006 13:51:34 -0000 --mvpLiMfbWzRoNl4x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 19, 2006 at 07:05:49PM +0530, Rajkumar S wrote: > On 8/19/06, Ruslan Ermilov wrote: > >On Sat, Aug 19, 2006 at 05:44:39PM +0530, Rajkumar S wrote: > >> The man page states > >> > >> DESCRIPTION > >> The ip_input node type takes all received packets and queues them= =20 > >into > >> the IP in input processing subsystem. >=20 > >It does this simple thing: > > > >> netisr_dispatch(NETISR_IP, m); > > > >which means putting the mbuf pointed to by "m" into the IP > >input queue and scheduling a call to ip_input(). >=20 > Thanks a lot for your answer. >=20 > So this is used to inject packets into the ip stack? > Yes. > also, normally > packets received from ethernet is passed into the same point, right? >=20 Normally, yes. By sys/net/if_ethersubr.c::ether_demux(). > Any points to docs to read about a packet's traversal in FreeBSD ip > stack? (especially wrt pf) >=20 What level of detalization do you need? Filters, such as pf(4), are embedded into the normal processing using the pfil(9) API. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --mvpLiMfbWzRoNl4x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE5xdlqRfpzJluFF4RAjq+AJ0WSk4NpfUbT94fIjMTY585veHrRwCfS4rH koSN68ytc1h4EaynmyA8H3M= =1dSx -----END PGP SIGNATURE----- --mvpLiMfbWzRoNl4x--