[Winpcap-users] Winpcap-users Digest, Vol 75, Issue 6

rajath kumara rajathkumara at gmail.com
Thu Jun 23 00:36:09 PDT 2011


Thanks a lot Guy Harris for your help.
Will follow those instructions and get back to you, incase i need any help.



On Thu, Jun 23, 2011 at 12:30 AM, <winpcap-users-request at winpcap.org> wrote:

> Send Winpcap-users mailing list submissions to
>        winpcap-users at winpcap.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://www.winpcap.org/mailman/listinfo/winpcap-users
> or, via email, send a message with subject or body 'help' to
>        winpcap-users-request at winpcap.org
>
> You can reach the person managing the list at
>        winpcap-users-owner at winpcap.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Winpcap-users digest..."
>
>
> Today's Topics:
>
>   1. Re: C++ code to determine ports existence (Guy Harris)
>   2. Re: port window (Guy Harris)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 21 Jun 2011 12:36:48 -0700
> From: Guy Harris <guy at alum.mit.edu>
> To: winpcap-users at winpcap.org
> Subject: Re: [Winpcap-users] C++ code to determine ports existence
> Message-ID: <27773B61-368F-4562-B6C3-0443A9719356 at alum.mit.edu>
> Content-Type: text/plain; charset=us-ascii
>
> (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.)
>
> On Jun 21, 2011, at 5:19 AM, rajath kumara wrote:
>
> >  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.
> > I think winpcap function, findalldevs() does this, but i am not able to
> find this function
>
> It's not "findalldevs()", it's "pcap_findalldevs()".
>
> > nor i dont know how to compile or run it.
>
> 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
>
>        http://www.winpcap.org/devel.htm
>
> to download it.
>
> pcap_findalldevs() is not a program, so you don't run it, you call it in
> *your* program:
>
>
> http://www.winpcap.org/docs/docs_412/html/group__wpcapfunc.html#ga7b128eaeef627b408f6a6e2a2f5eb45d
>
> and you run your program.  It's a C function, not a C++ function, but its
> declaration in pcap/pcap.h is wrapped inside
>
>        #ifdef __cplusplus
>        extern "C" {
>        #endif
>
> and
>
>        #ifdef __cplusplus
>        }
>        #endif
>
> so it should be callable from C++ code.
>
> > also the documentation page , isnt working
> http://www.winpcap.org/docs/docs40a1/html/group__compilation.html
>
> 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:
>
>        http://www.winpcap.org/docs/docs_412/html/group__compilation.html
>
> ------------------------------
>
> Message: 2
> Date: Tue, 21 Jun 2011 12:54:38 -0700
> From: Guy Harris <guy at alum.mit.edu>
> To: winpcap-users at winpcap.org
> Subject: Re: [Winpcap-users] port window
> Message-ID: <C4B68492-53FC-4F61-A901-89087C54D984 at alum.mit.edu>
> Content-Type: text/plain; charset=us-ascii
>
>
> On Jun 20, 2011, at 11:57 PM, geek techie wrote:
>
> > Now when i click on ostinato symbol, i see the green light on
> > 127.0.0.1 ( loopback )
> >
> > but my other Network interface Cards( 2 NIC's with 4 ports) , are not
> > seen.
> >
> > May i know why?
>
> WinPcap is not directly responsible for Ostinato's GUI, so it's not
> directly responsible for showing ports in the GUI.
>
> If you mean that those other NICs don't show up in Ostinato *at all*, try
> downloading WinDump:
>
>        http://www.winpcap.org/windump/default.htm
>
> 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.
>
> 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.
>
> ------------------------------
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
>
> End of Winpcap-users Digest, Vol 75, Issue 6
> ********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winpcap.org/pipermail/winpcap-users/attachments/20110623/31b82bfb/attachment.html>


More information about the Winpcap-users mailing list