Re: [tcpdump-workers] Query about running many, many, rules

2013-07-02 Thread Alan DeKok
Michael Richardson wrote: > I'm unclear if you want to run many rules (filter1 OR filter2 OR filter3) on > a single interface, or you want to run many pcap filters on different > interfaces. One interface. 1000's of filter rules. > I think that Guy's answer suggesting that your pcap library wa

Re: [tcpdump-workers] Query about running many, many, rules

2013-07-02 Thread Michael Richardson
I'm unclear if you want to run many rules (filter1 OR filter2 OR filter3) on a single interface, or you want to run many pcap filters on different interfaces. > There's pcap_open_offline() for files. There's no > interface which says "here's a packet, run the rule against it". I think that Guy'

Re: [tcpdump-workers] Query about running many, many, rules

2013-06-19 Thread Alan DeKok
Guy Harris wrote: > Older versions of libpcap don't have that, Ah, that's why I couldn't find it. > Fill in a "struct pcap_pkthdr" (the filter doesn't look at the time stamp; > all it cares about is "caplen", which tells it how much packet data there is, > and "len", which tells it what the l

Re: [tcpdump-workers] Query about running many, many, rules

2013-06-19 Thread Guy Harris
On Jun 19, 2013, at 10:44 AM, Alan DeKok wrote: > However... I can't do this right now. There's pcap_open_live() for > interfaces. There's pcap_open_offline() for files. There's no > interface which says "here's a packet, run the rule against it". $ man pcap_offline_filter PCAP_OFFLINE_FILT

[tcpdump-workers] Query about running many, many, rules

2013-06-19 Thread Alan DeKok
How does PCAP handle running many rules? The current approach is to open one PCAP interface per rule. The end goal is to be able to run an live application with 1000's of simultaneous rules. The issue is that the current pcap_open_* interfaces are pretty limited. I could open one pcap str