Re: [tcpdump-workers] pcap_compile() causes a segmentation fault on Ubuntu

2010-12-14 Thread Selçuk Cevher
The problem was with pcap_t* value - it was invalid. I fixed it. Thank you. On Tue, Dec 14, 2010 at 1:46 PM, Guy Harris wrote: > > On Dec 14, 2010, at 1:05 AM, Selçuk Cevher wrote: > > > If you need to see the sources for listAllDevices() and > openNetworkDevice() > > as well, I can post them

Re: [tcpdump-workers] pcap_compile() causes a segmentation fault on Ubuntu

2010-12-14 Thread Guy Harris
On Dec 14, 2010, at 1:05 AM, Selçuk Cevher wrote: > If you need to see the sources for listAllDevices() and openNetworkDevice() > as well, I can post them. I definitely need to see the source code for openNetworkDevice(). Presumably its first argument is a reference to a pcap_t *, but, if it

[tcpdump-workers] pcap_compile() causes a segmentation fault on Ubuntu

2010-12-14 Thread Selçuk Cevher
Hi All, The following code fragment causes a segmentation fault in Ubuntu when pcap_compile() is executed in setupFilterExpression(): *int main() { char errbuf[PCAP_ERRBUF_SIZE]; vector devNames; listAllDevices(devNames, errbuf);//list the device names pcap_t* handle;//sniffing