Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Jul 2005 11:47:16 +0200
From:      Max Laier <max@love2party.net>
To:        freebsd-net@freebsd.org, Ozkan KIRIK <ozkan@mersin.edu.tr>
Subject:   Re: Adding pfil hook to only one interface
Message-ID:  <200507011147.22935.max@love2party.net>
In-Reply-To: <20050701091620.7C5AF45254@mail.mersin.edu.tr>
References:  <20050701091620.7C5AF45254@mail.mersin.edu.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1781629.jlE1YdYrUG
Content-Type: text/plain;
  charset="iso-8859-9"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Friday 01 July 2005 11:16, Ozkan KIRIK wrote:
> Does pfil_hooks support adding hook to only one interface?
> If it is not possible, how can i check, the packet belongs to which
> interface?

No, it's not possible to add a pfil hook to just one interface.

The hook function has a struct ifnet pointer as third argument.  This is wh=
ere=20
the receiving/sending interface is passed.

=2D-=20
/"\  Best regards,                      | mlaier@freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News

--nextPart1781629.jlE1YdYrUG
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBCxREqXyyEoT62BG0RAhXBAJ9AMpHWyVcVNJ7VIclCiYDpJ2aXBwCeJdEo
oe9QQVvUkQEOHzLZUYYeDYQ=
=TH8i
-----END PGP SIGNATURE-----

--nextPart1781629.jlE1YdYrUG--



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