Adding pfil hook to only one interface

Max Laier max at
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
\ /  Max Laier                          | ICQ #67774661
 X  | 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 :

More information about the freebsd-net mailing list