[Winpcap-users] RE: Winpcap-users Digest, Vol 32, Issue 6

*farhan Khan* farhanhbk at hotmail.com
Wed Nov 14 13:03:20 GMT 2007


Thanks for your replies guys , but the problem is still remain. Suppose if i create an application which work in background to capture only URLS.Then  i dont want my client to select the adapter by himself , 70% of commercial users are not technichal so instead of telling them to select their approperiate adapter for capturing packets seems not OK with my specifications. Plus i cant run two modules of winpcap on a system if i will do that then suppose a person has 3 adapter one genric dilaup, other twos are LAN  ethernet and WAN then it became like 3 threads which will work on all of these adapters to capture the TCP IP data, while one of them will be working. So thats why i want that application to detect itself that which adapter is currently perfect to catch the data. Hope you guys got the idea of it now??
 
Also my OS is winxp
 
> Date: Wed, 14 Nov 2007 12:00:55 +0000> From: winpcap-users-request at winpcap.org> Subject: Winpcap-users Digest, Vol 32, Issue 6> To: winpcap-users at winpcap.org> > 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. how to auto detect the interface (*farhan Khan*)> 2. Re: how to auto detect the interface (David Chang)> 3. Re: how to auto detect the interface (Gianluca Varenni)> > > ----------------------------------------------------------------------> > Message: 1> Date: Tue, 13 Nov 2007 19:29:07 +0000> From: *farhan Khan* <farhanhbk at hotmail.com>> Subject: [Winpcap-users] how to auto detect the interface> To: <winpcap-users at winpcap.org>> Message-ID: <BAY143-W452462A9AD37388DF204AFBC800 at phx.gbl>> Content-Type: text/plain; charset="windows-1252"> > > hi,> i am new user of this mail list, i would like to know how can i detect which interface is the correct one to capture the packets on TCP 8080/80 and 1080 etc. I want my application to select approperiate interface automatically without user's input for the interface.... Is this possible if yes then please let me know how can i do that???> > > Regards> Farhan> _________________________________________________________________> Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it now.> http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033> -------------- next part --------------> An HTML attachment was scrubbed...> URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20071113/6c093f8a/attachment-0001.htm> > ------------------------------> > Message: 2> Date: Tue, 13 Nov 2007 14:22:56 -0800> From: "David Chang" <dchang at fsautomation.com>> Subject: Re: [Winpcap-users] how to auto detect the interface> To: <winpcap-users at winpcap.org>> Message-ID: <02ae01c82643$bdef9ac0$6b36a8c0 at ace>> Content-Type: text/plain; charset="windows-1252"> > Farhan,> > Are you asking how to translate a single IP address to a particular NIC? Or, do you actually need to sample the packet stream because you have some kind of SPAN/mirror port on a switch?> > By the way, which O.S. are you writing this application for?> > DC> > ----- Original Message ----- > From: *farhan Khan* > To: winpcap-users at winpcap.org > Sent: Tuesday, November 13, 2007 11:29 AM> Subject: [Winpcap-users] how to auto detect the interface> > > hi,> i am new user of this mail list, i would like to know how can i detect which interface is the correct one to capture the packets on TCP 8080/80 and 1080 etc. I want my application to select approperiate interface automatically without user's input for the interface.... Is this possible if yes then please let me know how can i do that???> > > Regards> Farhan> > > ------------------------------------------------------------------------------> Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now! > > > ------------------------------------------------------------------------------> > > _______________________________________________> 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/20071113/d4053d15/attachment-0001.htm> > ------------------------------> > Message: 3> Date: Tue, 13 Nov 2007 14:46:57 -0800> From: "Gianluca Varenni" <gianluca.varenni at cacetech.com>> Subject: Re: [Winpcap-users] how to auto detect the interface> To: <winpcap-users at winpcap.org>> Message-ID: <070901c82647$18df25b0$1a4da8c0 at NELSON2>> Content-Type: text/plain; charset="windows-1252"> > You will need some heuristics to do that. If what you are interested in is IP traffic, I would probably list the adapters with their associated IP addresses. In the simple case (a machine with just one wired or wireless connection), you will get two (or three) adapters and only one of them will have a (valid) IP address associated to the adapter. And you will pick that one.> Things get much more complicated if> 1. the machine has more than one adapter> 2. (a special case of 1.) the machine has a wired and a wireless adapter (all the modern laptops have both), and the user switches often between the adapters (or use both of them at the same time). In this case you will need to capture from both the adapters.> > Hope it helps> GV> ----- Original Message ----- > From: *farhan Khan* > To: winpcap-users at winpcap.org > Sent: Tuesday, November 13, 2007 11:29 AM> Subject: [Winpcap-users] how to auto detect the interface> > > hi,> i am new user of this mail list, i would like to know how can i detect which interface is the correct one to capture the packets on TCP 8080/80 and 1080 etc. I want my application to select approperiate interface automatically without user's input for the interface.... Is this possible if yes then please let me know how can i do that???> > > Regards> Farhan> > > ------------------------------------------------------------------------------> Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now! > > > ------------------------------------------------------------------------------> > > _______________________________________________> 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/20071113/227ed133/attachment-0001.htm> > ------------------------------> > _______________________________________________> Winpcap-users mailing list> Winpcap-users at winpcap.org> https://www.winpcap.org/mailman/listinfo/winpcap-users> > > End of Winpcap-users Digest, Vol 32, Issue 6> ********************************************
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20071114/3d1f6564/attachment.htm


More information about the Winpcap-users mailing list