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 change to pcap_close(&handle) I get the following error: > > > > Be

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

2013-06-20 Thread Guy Harris
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 change to pcap_close(&handle) I get the following error: > > Because code that passes a pointer to a pointer to a pcap_t, r

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 a pcap_t, to pcap_close() is errone

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

2013-06-20 Thread Guy Harris
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 a pcap_t, to pcap_close() is erroneous code. You cannot arrange that libpcap somehow ma

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

2013-06-20 Thread Gert Doering
Hi, On Thu, Jun 20, 2013 at 10:36:27PM +0300, Nadav Vinik wrote: > On 20 June 2013 20:16, Gert Doering wrote: > > > > 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

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(handle); > > if(handle == NULL) { > > In C, this

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

2013-06-20 Thread Gert Doering
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(handle); > if(handle == NULL) { In C, this will never ever change the value of "handle", unless pcap_close()

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