associating queued packets to filters

Kapil Jain kapil@cs.iastate.edu
Sun, 12 Sep 1999 18:51:52 -0500 (CDT)


Hi,

What is a simple way to find out when a pcaket is recived
which filter matched it? 
I mean if I have multiple rules on a hook which queue packets,
how does the userspace program know due to which filter it is queued?
I know there is a reason feild in sk_buff, but dont seem to figure 
out a way of using that.

Also If I have a program to add rules just as in iptables,
but more than one at a time, is it required to get a handle every time?

Thanks!
Kapil