[Winpcap-bugs] HAVE_REMOTE counter-intuitively needed

Mark Bednarczyk voytechs at yahoo.com
Thu Aug 9 17:02:44 GMT 2007


Oops. Sorry I replied to the wrong message. I was referring to a crashing
bug involved in remote code.

Sorry for the mix up.

Cheers,
mark... 

> -----Original Message-----
> From: Mark Bednarczyk [mailto:voytechs at yahoo.com] 
> Sent: Thursday, August 09, 2007 12:59 PM
> To: 'Gianluca Varenni'; 'YG'; 'winpcap-bugs at winpcap.org'
> Subject: RE: [Winpcap-bugs] HAVE_REMOTE counter-intuitively needed
> 
> Actually, this is with the -DHAVE_REMOTE defined to the 
> compiler. I can successfully open a remote capture with my 
> test code and crash it with a bogus flag. So the issue is still valid.
> 
> Cheers,
> mark... 
> 
> > -----Original Message-----
> > From: winpcap-bugs-bounces at winpcap.org 
> > [mailto:winpcap-bugs-bounces at winpcap.org] On Behalf Of Gianluca 
> > Varenni
> > Sent: Thursday, August 09, 2007 12:46 PM
> > To: YG; winpcap-bugs at winpcap.org
> > Subject: Re: [Winpcap-bugs] HAVE_REMOTE counter-intuitively needed
> > 
> > Well, the reason behind that is that pcap_open() is a specific 
> > extension to the usual pcap_open_live() supporting (among other 
> > things) remote capture. So you need to have the remote capabilities 
> > enabled to use that API. And that's the reason why there are two 
> > copies of the pktdump_ex sample, one in the examples_pcap 
> (not using 
> > pcap_open and the remote extensions, and working on unix as 
> well), and 
> > one in examples-remote (using pcap_open and all the other remote 
> > capture extensions).
> >  
> > In any case I can add a comment at the beginning of every sample in 
> > the examples-remote folder stating that HAVE_REMOTE (as 
> well as WPCAP) 
> > should be defined in order to compile such samples.
> >  
> > Have a nice day
> > GV
> >  
> >  
> > ----- Original Message -----
> > 
> > 	From: YG <mailto:yagibear at gmail.com>  
> > 	To: winpcap-bugs at winpcap.org 
> > 	Sent: Friday, August 03, 2007 8:36 PM
> > 	Subject: [Winpcap-bugs] HAVE_REMOTE counter-intuitively needed
> > 
> > 	When compiling the developer's example pktdump_ex.c I 
> found that the 
> > definition of PCAP_SRC_IF_STRING was in the remote-ext.h 
> header, which 
> > required the HAVE_REMOTE preprocessor directive.  Not 
> intuitive for an 
> > introductory sniffing example why esoteric remote capture 
> capabilities 
> > are needed.  Suggest explicitly stating in example code that 
> > HAVE_REMOTE needs to be defined.
> > 	
> > 
> > 	
> > ________________________________
> > 
> > 
> > 	
> > 
> > 	_______________________________________________
> > 	Winpcap-bugs mailing list
> > 	Winpcap-bugs at winpcap.org
> > 	https://www.winpcap.org/mailman/listinfo/winpcap-bugs
> > 	
> > 
> > 



More information about the Winpcap-bugs mailing list