arun kumarn wrote:

Hi

While porting the code over Linux i got one problem
just i want to know what actually
struct pfi_kif is for
pfi_kif contains the the information PF keeps about interfaces.
That mean that for each interface that exist on your OS,
(struct ifnet on BSD) there is a parallel structure pfi_kif.

PF also allocates pfi_kif structures for interfaces that are
defined in PF rules but don't exist (yet) on your OS.

For example, assume you've one ethernet interface eth0
on linux. You will have one pfi_kif structure for eth0.

But if you define "pass in on eth1 from foobar", then PF
will create a pfi_kif structure for "eth1" even if there is
no such interface on your box.

eth1 could appear later if you plug some USB gear for
example, in which case the above rule will immediately
work without user intervention.

Cedric

Reply via email to