tcpdump mailing list archives

Re: Filter incoming or leaving packets


From: Guy Harris <guy () alum mit edu>
Date: Tue, 3 Mar 2009 10:39:52 -0800


On Mar 3, 2009, at 9:49 AM, Johan Mazel wrote:

Ok, I'm running libpcap 0.9.8-5 on Ubuntu 8.10.
Despite that this function is in the man version of libpcap and that I don't have any compilation error, it looks like it's not working since I have have a segmentation error each time I try to launch a program with the funtion
inside.
I tried to use it with something like this: pcap_setdirection(this- >descr,
PCAP_D_IN); this->descr being a pcap_t * attribute of my class.

You've already opened the device with pcap_open_live(), and assigned the result to "descr", right? (You have to do that before you call pcap_setdirection.)
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: