Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2006 17:51:33 +0400
From:      Ruslan Ermilov <ru@freebsd.org>
To:        Rajkumar S <rajkumars@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: ng_ip_input ?
Message-ID:  <20060819135133.GC9271@rambler-co.ru>
In-Reply-To: <64de5c8b0608190635q1fe2c0c5oe5d258748c1c5c95@mail.gmail.com>
References:  <64de5c8b0608190514l1c2241edj57b114997e01a8b2@mail.gmail.com> <20060819125550.GA8879@rambler-co.ru> <64de5c8b0608190635q1fe2c0c5oe5d258748c1c5c95@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <ru@freebsd.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060819135133.GC9271>