Thanks for your reply....
My implementation is bit different, let me explain it. Here I want to classify the incoming packets into different streams based on filter conditions. These conditions may be based on IP source/destination address, TCP/UDP source/destination port number, protocol etc header fields. These conditions may be static or in range. For example,
Stream 1
IP src address = 192.168.0.0
IP dst address = 192.168.0.2
src port = 80
dst port = 23
protocol = Any
Stream 2
IP src address = 192.168.1.0
IP dst address = 192.168.1.2
src port = 21
dst port = Any between 50 and 2000
protocol = Any
All other packets will be dropped. Here I have taken example of two streams but it can be more.
Also I have attached an image here.
**broken link removed**
Thanks & Regards