From owner-freebsd-net@FreeBSD.ORG Fri Jul 1 09:47:29 2005 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 CBF9216A41C for ; Fri, 1 Jul 2005 09:47:29 +0000 (GMT) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6248C43D1D for ; Fri, 1 Jul 2005 09:47:29 +0000 (GMT) (envelope-from max@love2party.net) Received: from p54A3EBB4.dip.t-dialin.net [84.163.235.180] (helo=donor.laier.local) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKwtQ-1DoI7J23Wm-0000nm; Fri, 01 Jul 2005 11:47:25 +0200 From: Max Laier To: freebsd-net@freebsd.org, Ozkan KIRIK Date: Fri, 1 Jul 2005 11:47:16 +0200 User-Agent: KMail/1.8 References: <20050701091620.7C5AF45254@mail.mersin.edu.tr> In-Reply-To: <20050701091620.7C5AF45254@mail.mersin.edu.tr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1781629.jlE1YdYrUG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200507011147.22935.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: Subject: Re: Adding pfil hook to only one interface 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: Fri, 01 Jul 2005 09:47:29 -0000 --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--