Hello,

I am working in windows.

So from your comments I understand we can sniff packets from all network 
adapters installed in pc.i will try out this.

If possible can you send some code snippet which will do sniffing of all 
adapter packets?

Thanks for the response.


Thanks and  Regards,
Sudheer Mygapula
Siemens Information Systems Ltd.
Industry Sector
Industrial Automation & Drive Technology
CTDC India IA&DT

Block B, Salarpuria Infozone,
Electronics City, Hosur Road, Bangalore - 560 100
Tel.: +91 80 6711 1309
mailto.: [email protected]
www.siemens.co.in

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Guy Harris
Sent: Monday, June 21, 2010 11:12 AM
To: [email protected]
Subject: Re: [Winpcap-users] Regarding sniffing on multiple interfaces.


On Jun 20, 2010, at 10:29 PM, Mygapula, Sudheer IN BLR SISL wrote:

> I want to sniff packet over all available interface in pc.
>
> The current architecture of my project doesn't support threading. Is there 
> any way to do it without threading?

Yes, if your PC happens to be running Linux as its operating system; you can 
capture on the "any" device on Linux.  (PC != Windows, Apple's commercials to 
that effect nonwithstanding.)

Otherwise, you will have to open each device separately, and use either 
select() or poll() (NOTE: poll() won't work for pcap captures on any version of 
Mac OS X prior to 10.6) on UN*X, or WaitForMultipleObjects() on Windows (with 
WinPcap), to wait for one or more of the pcap_t's to have packets available.

> Is there any asyn callback functionality available to start sniffing at all 
> NIC at one shot?

No.
_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users

Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.
_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users

Reply via email to