[tcpdump-workers] Promiscuous mode and BPF filters?

2004-12-01 Thread Claudio Lavecchia
Hello ppl, I need a little assistance from you experienced packet filtering guys: I am running a Linux Redhat 7.3 distribution (kernel version 2.4.18-3). My problem is the following: I have two laptops (say A and B) that have 802.11 wireless cards. I am developing some application that

Re: [tcpdump-workers] Promiscuous mode and BPF filters?

2004-12-01 Thread Guy Harris
On Dec 1, 2004, at 7:53 AM, Claudio Lavecchia wrote: I have two laptops (say A and B) that have 802.11 wireless cards. I am developing some application that essentially perform sniffing functions using wireless cards in promiscuous mode. To test my code, I need those two laptops not to see each

Re: [tcpdump-workers] loopback interface and byte order

2004-12-01 Thread Guy Harris
On Dec 1, 2004, at 3:31 PM, Robert Lowe wrote: In testing a small app using libpcap, I noticed differences in behaviour when using the loopback interface vs. using a hardware interface. In particular, it seems the packets coming in over the loopback interface are still in host byte order

[tcpdump-workers] Making pcap_loop call different callback functions dependent on packet ..

2004-12-01 Thread MMatos
Hi there! How can i implement a filter that based on the kind of traffic it recieves it calls different callback functions ? As an example if a packet arrives from 1.1.1.1 it will call the function callback1 and if it arrives from 1.1.2.1 it should call function callback2 so i can process