[Winpcap-users] pcap_findalldevs_ex hangs inside java process

Mark Bednarczyk voytechs at yahoo.com
Mon Sep 21 09:51:11 PDT 2009


 Mani,
  we use pcap_findalldevs_ex in our java project and we have no problem
within java VM. There are thousands of users using our project and it has
never come up as a problem. Our internal tests with findalldev_ex work as
well. Its an open source project, so you are welcome to take a look at the
source and how we use it.

http://jnetpcap.com

here is the link to the relavent C source file that implements the
<http://jnetpcap.svn.sourceforge.net/viewvc/jnetpcap/jnetpcap/trunk/src/c/wi
npcap_ext.cpp?view=markup> findalldevs_ex as a java wrapper. The
findalldevs_ex code starts around line 750.

Cheers,
mark...

> -----Original Message-----
> From: winpcap-users-bounces at winpcap.org
> [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of E, Manivannan
> Sent: Thursday, September 17, 2009 6:17 AM
> To: winpcap-users at winpcap.org
> Subject: Re: [Winpcap-users] pcap_findalldevs_ex hangs inside
> java process
>
> I don't see the "pcap_findalldevs_ex" hang issue on Vista and
> it work properly. We want this application to run on XP as
> our machines are predominantly XP.
>
> 
>
> Regards,
>
> Mani
>
> 
>
> ________________________________
>
> From: winpcap-users-bounces at winpcap.org
> [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of
> Gianluca Varenni
> Sent: Wednesday, September 16, 2009 3:06 AM
> To: winpcap-users at winpcap.org
> Subject: Re: [Winpcap-users] pcap_findalldevs_ex hangs inside
> java process
>
> 
>
> Does the same issue happen on Vista?
>
> 
>
> Have a nice day
>
> GV
>
>       ----- Original Message -----
>
>       From: E, Manivannan <mailto:manie at ti.com> 
>
>       To: winpcap-users at winpcap.org
>
>       Sent: Friday, September 11, 2009 9:55 AM
>
>       Subject: Re: [Winpcap-users] pcap_findalldevs_ex hangs
> inside java process
>
>       
>
>       I am using Window XP with SP2.
>
>       
>
>       Regards,
>
>       Mani
>
>       
>
>      
> ________________________________
>
>
>       From: winpcap-users-bounces at winpcap.org
> [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of
> Gianluca Varenni
>       Sent: Friday, September 11, 2009 10:19 PM
>       To: winpcap-users at winpcap.org
>       Subject: Re: [Winpcap-users] pcap_findalldevs_ex hangs
> inside java process
>
>       
>
>       Which version of Windows are you using?
>
>       
>
>       Have a nice day
>
>       GV
>
>               ----- Original Message -----
>
>               From: E, Manivannan <mailto:manie at ti.com> 
>
>               To: winpcap-users at winpcap.org
>
>               Sent: Friday, September 11, 2009 9:28 AM
>
>               Subject: Re: [Winpcap-users]
> pcap_findalldevs_ex hangs inside java process
>
>               
>
>               I am not using java wrapper. I am using the
> winpcap lib inside C++ code which is built as a dll. Eclipse
> env is used as IDE mainly for user interface. When used in
> with eclipse GUI, the pcap_findalldevs_ex doesn't hang but
> hangs when execute on command-line.
>
>               
>
>               Regards,
>
>               Mani
>
>               
>
>              
> ________________________________
>
>
>               From: winpcap-users-bounces at winpcap.org
> [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of
> Gianluca Varenni
>               Sent: Friday, September 11, 2009 9:14 PM
>               To: winpcap-users at winpcap.org
>               Subject: Re: [Winpcap-users]
> pcap_findalldevs_ex hangs inside java process
>
>               
>
>               Are you using any of the jave wrapper already
> available for WinPcap?
>
>               
>
>               Have a nice day
>
>               GV
>
>                       ----- Original Message -----
>
>                       From: E, Manivannan <mailto:manie at ti.com> 
>
>                       To: winpcap-users at winpcap.org
>
>                       Sent: Friday, September 11, 2009 1:06 AM
>
>                       Subject: [Winpcap-users]
> pcap_findalldevs_ex hangs inside java process
>
>                       
>
>                       Hi,
>
>                            I am using the Winpcap lib in
> eclipse (Java) environment and "pcap_findalldevs_ex" work
> fine return all the devices but when I use eclipse directly
> Java in command line-mode i.e. in command prompt then
> "pcap_findalldevs_ex" hangs, never return whether it failed
> or passed. I suspected the "Remote Capture Service" is not
> getting started, so I tried enabling the service manually &
> tried but still the "pcap_findalldevs_ex" hangs. Any clues on
> what's going wrong here?
>
>                       
>
>                       Winpcap Version - 4.0.2
>
>                       
>
>                       Regards,
>
>                       Mani
>
>                       
>
>                      
> ________________________________
>
>
>                       _______________________________________________
>                       Winpcap-users mailing list
>                       Winpcap-users at winpcap.org
>                      
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
>              
> ________________________________
>
>
>               _______________________________________________
>               Winpcap-users mailing list
>               Winpcap-users at winpcap.org
>               https://www.winpcap.org/mailman/listinfo/winpcap-users
>
>      
> ________________________________
>
>
>       _______________________________________________
>       Winpcap-users mailing list
>       Winpcap-users at winpcap.org
>       https://www.winpcap.org/mailman/listinfo/winpcap-users
>
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20090921/d2436e64/attachment.htm 


More information about the Winpcap-users mailing list