<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Guys,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'> 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. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Meanwhile does anyone aware of pcap_findalldevs_ex
hang issue while using XPCOM on command line?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards, <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Mani<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
winpcap-users-bounces@winpcap.org [mailto:winpcap-users-bounces@winpcap.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Mark Bednarczyk<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, September 21, 2009
10:21 PM<br>
<b><span style='font-weight:bold'>To:</span></b> winpcap-users@winpcap.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Winpcap-users]
pcap_findalldevs_ex hangs inside java process</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'> Mani,<br>
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.<br>
<br>
<a href="http://jnetpcap.com">http://jnetpcap.com</a><br>
<br>
here is the link to the relavent C source file that implements the<a
href="http://jnetpcap.svn.sourceforge.net/viewvc/jnetpcap/jnetpcap/trunk/src/c/winpcap_ext.cpp?view=markup">
findalldevs_ex as a java wrapper</a>. The findalldevs_ex code starts around
line 750.<br>
<br>
Cheers,<br>
mark...<br>
<br>
> -----Original Message-----<br>
> From: winpcap-users-bounces@winpcap.org<br>
> [<a href="mailto:winpcap-users-bounces@winpcap.org">mailto:winpcap-users-bounces@winpcap.org</a>]
On Behalf Of E, Manivannan<br>
> Sent: Thursday, September 17, 2009 6:17 AM<br>
> To: winpcap-users@winpcap.org<br>
> Subject: Re: [Winpcap-users] pcap_findalldevs_ex hangs inside<br>
> java process<br>
><br>
> I don’t see the “pcap_findalldevs_ex” hang issue on <st1:place
w:st="on">Vista</st1:place> and<br>
> it work properly. We want this application to run on XP as<br>
> our machines are predominantly XP.<br>
><br>
> <br>
><br>
> Regards,<br>
><br>
> Mani<br>
><br>
> <br>
><br>
> ________________________________<br>
><br>
> From: winpcap-users-bounces@winpcap.org<br>
> [<a href="mailto:winpcap-users-bounces@winpcap.org">mailto:winpcap-users-bounces@winpcap.org</a>]
On Behalf Of<br>
> Gianluca Varenni<br>
> Sent: Wednesday, September 16, 2009 3:06 AM<br>
> To: winpcap-users@winpcap.org<br>
> Subject: Re: [Winpcap-users] pcap_findalldevs_ex hangs inside<br>
> java process<br>
><br>
> <br>
><br>
> Does the same issue happen on <st1:place w:st="on">Vista</st1:place>?<br>
><br>
> <br>
><br>
> Have a nice day<br>
><br>
> GV<br>
><br>
> ----- Original Message -----<br>
><br>
> From: E, Manivannan <<a
href="mailto:manie@ti.com">mailto:manie@ti.com</a>> <br>
><br>
> To: winpcap-users@winpcap.org<br>
><br>
> Sent: Friday, September 11, 2009 9:55 AM<br>
><br>
> Subject: Re: [Winpcap-users]
pcap_findalldevs_ex hangs<br>
> inside java process<br>
><br>
> <br>
><br>
> I am using Window XP with SP2.<br>
><br>
> <br>
><br>
> Regards,<br>
><br>
> Mani<br>
><br>
> <br>
><br>
> <br>
> ________________________________<br>
><br>
><br>
> From: winpcap-users-bounces@winpcap.org<br>
> [<a href="mailto:winpcap-users-bounces@winpcap.org">mailto:winpcap-users-bounces@winpcap.org</a>]
On Behalf Of<br>
> Gianluca Varenni<br>
> Sent: Friday, September 11, 2009 10:19 PM<br>
> To: winpcap-users@winpcap.org<br>
> Subject: Re: [Winpcap-users]
pcap_findalldevs_ex hangs<br>
> inside java process<br>
><br>
> <br>
><br>
> Which version of Windows are you using?<br>
><br>
> <br>
><br>
> Have a nice day<br>
><br>
> GV<br>
><br>
>
----- Original Message -----<br>
><br>
>
From: E, Manivannan <<a href="mailto:manie@ti.com">mailto:manie@ti.com</a>> <br>
><br>
>
To: winpcap-users@winpcap.org<br>
><br>
>
Sent: Friday, September 11, 2009 9:28 AM<br>
><br>
>
Subject: Re: [Winpcap-users]<br>
> pcap_findalldevs_ex hangs inside java process<br>
><br>
>
<br>
><br>
>
I am not using java wrapper. I am using the<br>
> winpcap lib inside C++ code which is built as a dll. Eclipse<br>
> env is used as IDE mainly for user interface. When used in<br>
> with eclipse GUI, the pcap_findalldevs_ex doesn’t hang but<br>
> hangs when execute on command-line.<br>
><br>
>
<br>
><br>
>
Regards,<br>
><br>
>
Mani<br>
><br>
>
<br>
><br>
> <br>
> ________________________________<br>
><br>
><br>
>
From: winpcap-users-bounces@winpcap.org<br>
> [<a href="mailto:winpcap-users-bounces@winpcap.org">mailto:winpcap-users-bounces@winpcap.org</a>]
On Behalf Of<br>
> Gianluca Varenni<br>
>
Sent: Friday, September 11, 2009 9:14 PM<br>
>
To: winpcap-users@winpcap.org<br>
>
Subject: Re: [Winpcap-users]<br>
> pcap_findalldevs_ex hangs inside java process<br>
><br>
> <br>
><br>
>
Are you using any of the jave wrapper already<br>
> available for WinPcap?<br>
><br>
>
<br>
><br>
>
Have a nice day<br>
><br>
>
GV<br>
><br>
>
----- Original Message -----<br>
><br>
>
From: E, Manivannan <<a
href="mailto:manie@ti.com">mailto:manie@ti.com</a>> <br>
><br>
>
To: winpcap-users@winpcap.org<br>
><br>
>
Sent: Friday, September 11, 2009
1:06 AM<br>
><br>
>
Subject: [Winpcap-users]<br>
> pcap_findalldevs_ex hangs inside java process<br>
><br>
>
<br>
><br>
>
Hi,<br>
><br>
>
I am using
the Winpcap lib in<br>
> eclipse (Java) environment and “pcap_findalldevs_ex” work<br>
> fine return all the devices but when I use eclipse directly<br>
> Java in command line-mode i.e. in command prompt then<br>
> “pcap_findalldevs_ex” hangs, never return whether it failed<br>
> or passed. I suspected the “Remote Capture Service” is not<br>
> getting started, so I tried enabling the service manually &<br>
> tried but still the “pcap_findalldevs_ex” hangs. Any clues on<br>
> what’s going wrong here?<br>
><br>
>
<br>
><br>
>
Winpcap Version – 4.0.2<br>
><br>
>
<br>
><br>
>
Regards,<br>
><br>
>
Mani<br>
><br>
>
<br>
><br>
>
<br>
> ________________________________<br>
><br>
><br>
>
_______________________________________________<br>
>
Winpcap-users mailing list<br>
>
Winpcap-users@winpcap.org<br>
>
<br>
> <a href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
><br>
> <br>
> ________________________________<br>
><br>
><br>
> _______________________________________________<br>
>
Winpcap-users mailing list<br>
>
Winpcap-users@winpcap.org<br>
> <a
href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
><br>
> <br>
> ________________________________<br>
><br>
><br>
>
_______________________________________________<br>
> Winpcap-users mailing list<br>
> Winpcap-users@winpcap.org<br>
> <a
href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
><br>
> </span></font><o:p></o:p></p>
</div>
</body>
</html>