tcpdump mailing list archives

pcap_compile Segmentation Fault


From: Flavio Truzzi <flaviotruzzi () gmail com>
Date: Fri, 3 Jun 2011 20:18:01 -0300

Hi, I am trying to compile a filter but I am getting a  segmentation fault,
anyone can help me out?

Code:

"
...

    handle = pcap_open_offline("aaaa.cap",errbuff);
    string filtroexp;
    filtroexp = "tcp port 80";
    pcap_compile(handle,&filtro,filtroexp.c_str(),0,0);
...
"

Thanks,

-- 
Flavio Sales Truzzi
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: