Adding pfil hook to only one interface
Max Laier
max at love2party.net
Fri Jul 1 09:47:29 GMT 2005
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 where
the receiving/sending interface is passed.
--
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20050701/bc914e55/attachment.bin
More information about the freebsd-net
mailing list