Thanks a lot Guy Harris for your help.<br>Will follow those instructions and get back to you, incase i need any help.<br><br><br><br><div class="gmail_quote">On Thu, Jun 23, 2011 at 12:30 AM, <span dir="ltr"><<a href="mailto:winpcap-users-request@winpcap.org">winpcap-users-request@winpcap.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send Winpcap-users mailing list submissions to<br>
<a href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:winpcap-users-request@winpcap.org">winpcap-users-request@winpcap.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:winpcap-users-owner@winpcap.org">winpcap-users-owner@winpcap.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Winpcap-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: C++ code to determine ports existence (Guy Harris)<br>
2. Re: port window (Guy Harris)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 21 Jun 2011 12:36:48 -0700<br>
From: Guy Harris <<a href="mailto:guy@alum.mit.edu">guy@alum.mit.edu</a>><br>
To: <a href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>
Subject: Re: [Winpcap-users] C++ code to determine ports existence<br>
Message-ID: <<a href="mailto:27773B61-368F-4562-B6C3-0443A9719356@alum.mit.edu">27773B61-368F-4562-B6C3-0443A9719356@alum.mit.edu</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
(winpcap-announce is a list for the WinPcap developers to send out announcements; the list to send to for questions such as this is winpcap-users.)<br>
<br>
On Jun 21, 2011, at 5:19 AM, rajath kumara wrote:<br>
<br>
> I need to find a C++ program, which when i run, gives me a list of all Ports in various NIC cards , i have in my system.<br>
> I think winpcap function, findalldevs() does this, but i am not able to find this function<br>
<br>
It's not "findalldevs()", it's "pcap_findalldevs()".<br>
<br>
> nor i dont know how to compile or run it.<br>
<br>
You don't compile it, you compile WinPcap. It's part of WinPcap; see wpcap/libpcap/fad-win32.c in the WinPcap source. You shouldn't need to compile WinPcap, however; you should just need the Developer's Pack - see<br>
<br>
<a href="http://www.winpcap.org/devel.htm" target="_blank">http://www.winpcap.org/devel.htm</a><br>
<br>
to download it.<br>
<br>
pcap_findalldevs() is not a program, so you don't run it, you call it in *your* program:<br>
<br>
<a href="http://www.winpcap.org/docs/docs_412/html/group__wpcapfunc.html#ga7b128eaeef627b408f6a6e2a2f5eb45d" target="_blank">http://www.winpcap.org/docs/docs_412/html/group__wpcapfunc.html#ga7b128eaeef627b408f6a6e2a2f5eb45d</a><br>
<br>
and you run your program. It's a C function, not a C++ function, but its declaration in pcap/pcap.h is wrapped inside<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
#endif<br>
<br>
and<br>
<br>
#ifdef __cplusplus<br>
}<br>
#endif<br>
<br>
so it should be callable from C++ code.<br>
<br>
> also the documentation page , isnt working <a href="http://www.winpcap.org/docs/docs40a1/html/group__compilation.html" target="_blank">http://www.winpcap.org/docs/docs40a1/html/group__compilation.html</a><br>
<br>
That's for the 4.0a1 release, which was an alpha release, so they probably got rid of it when later releases came out. Try the 4.1.2 documentation instead:<br>
<br>
<a href="http://www.winpcap.org/docs/docs_412/html/group__compilation.html" target="_blank">http://www.winpcap.org/docs/docs_412/html/group__compilation.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 21 Jun 2011 12:54:38 -0700<br>
From: Guy Harris <<a href="mailto:guy@alum.mit.edu">guy@alum.mit.edu</a>><br>
To: <a href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>
Subject: Re: [Winpcap-users] port window<br>
Message-ID: <<a href="mailto:C4B68492-53FC-4F61-A901-89087C54D984@alum.mit.edu">C4B68492-53FC-4F61-A901-89087C54D984@alum.mit.edu</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
On Jun 20, 2011, at 11:57 PM, geek techie wrote:<br>
<br>
> Now when i click on ostinato symbol, i see the green light on<br>
> 127.0.0.1 ( loopback )<br>
><br>
> but my other Network interface Cards( 2 NIC's with 4 ports) , are not<br>
> seen.<br>
><br>
> May i know why?<br>
<br>
WinPcap is not directly responsible for Ostinato's GUI, so it's not directly responsible for showing ports in the GUI.<br>
<br>
If you mean that those other NICs don't show up in Ostinato *at all*, try downloading WinDump:<br>
<br>
<a href="http://www.winpcap.org/windump/default.htm" target="_blank">http://www.winpcap.org/windump/default.htm</a><br>
<br>
and running it as "windump -D" from the command line and see if they show up in that list. If so, it's a problem with Ostinato, and you should ask the Ostinato people about it. If they don't show up in that list, it might be a WinPcap problem.<br>
<br>
If you mean that they show up but don't have a green light, you'd have to ask the Ostinato people why that's happening; there are no APIs in WinPcap to control a GUI indicator, so the Ostinato people would have to be asked what in libpcap/WinPcap, or what *not* in libpcap/WinPcap, controls the color of the indicator.<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
<br>
<br>
End of Winpcap-users Digest, Vol 75, Issue 6<br>
********************************************<br>
</blockquote></div><br>