Bugzilla – Bug 1062
rx_packets increasing without traffic
Last modified: 2006-08-10 22:50:19
You need to log in before you can comment on or make changes to this bug.
Although there is no traffic on the link (ethereal), /sys/class/net/eth1/statistics/rx_packets increases around 8 packets every second. This screws up programs showing/analysing network-traffic, sine they indicate incoming traffic when there is none.
the packets are beacons, can you set the mode to monitor to check the packets by ethereal?
Neither tcpdump nor ethereal show any packets in monitor mode. But when associated, the counter increases
They're indeed beacons (forgot to compile RADIOTAP in). Nonetheless, this bug is valid IMO since not one single driver I used so far counts beacons (ipw2200, rt2500, madwifi). Is see no reason why rx_packets counter should increase for packets that are not directly meant for the host.
Created an attachment (id=823) [details] Fix for the increasing rx_packets counter The attached patch fixes the problem for me, found in the ML. Now the counter works as expected. Any reason for not including this?
Created an attachment (id=825) [details] patch for rx_packets Sorry, the other patch was b0rked...
Created an attachment (id=828) [details] Move rx_packets increment into data frame handler. Makes sense to only count rx_packets for data frames since we only count rx_bytes for data payload. Attached is the patch I'll merge in for 1.0.10 (I haven't pushed the other snapshots to SF but you can pull them from GIT at http://bughost.org/repos/ipw3945.git/ if you want) Let me know if it does what you expect. Thanks, James
Can't check it currently since the driver fails to build with sim_rx.c:63:36: Error: net/ieee80211_radiotap.h: No such file or directory Maybe it will work if I patch the kernel with ieee80211, but I'm not to eager to do that (it's annoying enought to have two ieee80211 stacks, on in the kernel and one slightly different standalone one).
OK, put some ieee80211-stuff into /usr/include/net, but the driver (1.0.10kdmr) from today git) still counts incoming packets without any actual traffic. My patch worked better :)
OK, the reason the problem didn't disappear was that the patch is not in git. Oops, didn't notice that at first. OK, the patch works fine here. Thanks for the fix.
Wait this patch integrate in the 1.0.11.
Merged for 1.0.11. Setting to fixed.
Markus, can you try ipw3945-1.0.12 or ipw3945-1.1.0-pre2 and verify this bug if it has been fixed?
Yes, it works just fine now. Thanks.