[Winpcap-users] pcap_findalldevs_ex hangs inside java process

Gianluca Varenni gianluca.varenni at cacetech.com
Tue Sep 22 08:30:21 PDT 2009


I'm  not familiar with XPCOM. Does it use COM internally under Windows?

Have a nice day
GV

  ----- Original Message ----- 
  From: E, Manivannan 
  To: winpcap-users at winpcap.org 
  Sent: Tuesday, September 22, 2009 7:16 AM
  Subject: Re: [Winpcap-users] pcap_findalldevs_ex hangs inside java process


  Guys,

        I tried to create a test application to reproduce the issue. I used JNI and called my test bench which intern opened the dll & called pcap_findalldevs_ex. In the test application pcap_findalldevs_ex didn't hang and everything worked fine. Later I spoke to my colleagues and figured out that we use XPCOM to interface between Java API & C++ debugger. I haven't created a test application using XPCOM yet & would take some time for me. 

  Meanwhile does anyone aware of pcap_findalldevs_ex hang issue while using XPCOM on command line?

   

  Regards,                                                                                                             

  Mani

   

   


------------------------------------------------------------------------------

  From: winpcap-users-bounces at winpcap.org [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Mark Bednarczyk
  Sent: Monday, September 21, 2009 10:21 PM
  To: winpcap-users at winpcap.org
  Subject: Re: [Winpcap-users] pcap_findalldevs_ex hangs inside java process

   

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



------------------------------------------------------------------------------


  _______________________________________________
  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/20090922/1ee50454/attachment-0001.htm 


More information about the Winpcap-users mailing list