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
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
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