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, <[email protected]> wrote: > Send Winpcap-users mailing list submissions to > [email protected] > > 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 > [email protected] > > You can reach the person managing the list at > [email protected] > > 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 <[email protected]> > To: [email protected] > Subject: Re: [Winpcap-users] C++ code to determine ports existence > Message-ID: <[email protected]> > 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 <[email protected]> > To: [email protected] > Subject: Re: [Winpcap-users] port window > Message-ID: <[email protected]> > 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 > [email protected] > https://www.winpcap.org/mailman/listinfo/winpcap-users > > > End of Winpcap-users Digest, Vol 75, Issue 6 > ******************************************** >
_______________________________________________ Winpcap-users mailing list [email protected] https://www.winpcap.org/mailman/listinfo/winpcap-users
