[tcpdump-workers] How to check if pcap_t is really free?

2013-06-20 Thread Nadav Vinik
Hello How do I check if pcap handler is really free? After pcap_close handle is not NULL since the following printf is not print thanks Nadav pcap_close(handle); if(handle == NULL) { printf("handle is null\n"); } -- הבלוג שלי: http://nadavvin.com ___

Re: [tcpdump-workers] How to check if pcap_t is really free?

2013-06-20 Thread Nadav Vinik
On 20 June 2013 20:16, Gert Doering wrote: > Hi, > > On Thu, Jun 20, 2013 at 07:44:00PM +0300, Nadav Vinik wrote: > > After pcap_close handle is not NULL since the following printf is not > print > > > > thanks > > Nadav > > > > pcap_close(ha

Re: [tcpdump-workers] How to check if pcap_t is really free?

2013-06-20 Thread Nadav Vinik
On 20 June 2013 22:47, Guy Harris wrote: > > On Jun 20, 2013, at 12:36 PM, Nadav Vinik wrote: > > > Hoever if I change to pcap_close(&handle) I get the following error: > > Because code that passes a pointer to a pointer to a pcap_t, rather than a > pointer to

Re: [tcpdump-workers] How to check if pcap_t is really free?

2013-06-20 Thread Nadav Vinik
On 20 June 2013 23:52, Guy Harris wrote: > > On Jun 20, 2013, at 1:05 PM, Nadav Vinik wrote: > > > > > > > On 20 June 2013 22:47, Guy Harris wrote: > > > > On Jun 20, 2013, at 12:36 PM, Nadav Vinik wrote: > > > > > Hoever if I c