Re: [tcpdump-workers] Problem with pcap_set_datalink DLT_IEEE802_11_RADIO

2013-09-17 Thread Guy Harris

On Sep 12, 2013, at 11:29 AM, Elton Lika  wrote:

> Also pcap_list_datalinks returns only DLT_NULL for the device.

I.e.. pcap_list_datalinks() returns 1, and the first (and only) entry in the 
list it supplies has 0 (DLT_NULL) in it?

Are you calling it before, or after, calling pcap_activate()?
___
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers


Re: [tcpdump-workers] Problem with pcap_set_datalink DLT_IEEE802_11_RADIO

2013-09-17 Thread Guy Harris

On Sep 11, 2013, at 12:56 AM, Elton Lika  wrote:

> Here is the source code excerpt that fails:

...

>pcap_activate(handle);

In particular, it fails to check whether pcap_activate() succeeds.

What does pcap_activate() return?  It's not guaranteed to succeed
___
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers