LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-04-2005, 09:15 AM   #1
MrHenky
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
select() and dropped packets


Hi,

I have written a small sniffer which sits there and looks for wireless
traffic on a raw socket. The device is a WiFi card; driver madwifi.
I'm using select() to see whether there is something to read or not.
The rough structure is like this:

while(1)
{
select()
recv()
process()
output()
}

The app is running on Debian on an AMD 486 single board computer,
i.e., quite limited processing power.

Problem 1:
In a crowded environment, I am not getting all packets that are sent
by wireless devices around me. How can I quantify the number of
packets that I'm getting (i.e., processing in my loop) versus the
total number of packets seen by the device, but dropped due to
limited processing power?

Problem 2:
Is there a more efficient way to capture packets off the device such
that the number of captured packets is maximized?

Thanks in advance,
- Daniel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
3899 packets dropped by kernel, about 40% abefroman Linux - Networking 1 11-17-2005 11:52 AM
too much dropped packets...Hi.. alaios Linux - Networking 2 02-10-2005 04:49 AM
Dropped packets - is this a problem?? benr77 Linux - General 4 10-04-2004 02:05 PM
tcpdump and dropped packets Blindsight Linux - Networking 5 07-14-2003 10:41 PM
dropped packets... sohmc Linux - Software 3 05-29-2003 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration