LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2011, 12:32 PM   #1
TotallyNew2011
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
Talking Madwifi (tx_bytes)


Hello everybody, I have a question and I hope that somebody can help me. I'm using Madwifi v0.9.4. I know that in netdevice.h file there is the struct net_device_stats with rx_bytes and tx_bytes fields. I set up mynetcard in station mode and I wrote a program that prints on stdout (every x seconds) these two numbers. While for rx_bytes I know that this is the number of correctly received bytes, I was wondering: how can I know the number of total successfully transmitted bytes? This question comes from the fact that tx_bytes is incremented when is put into the buffer and so it counts also retransmissions (and, by the way, some of them are performed by hardware...), but I'm interested in just the correct tx_bytes, because I have to compute the goodput. Is there an expert guy (or maybe more than one) that knows how to help me?

Thanks in advance.

Regards.
 
Old 11-22-2011, 10:51 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Deleted.....

Last edited by corp769; 11-23-2011 at 05:38 AM.
 
Old 11-23-2011, 04:42 AM   #3
TotallyNew2011
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by corp769 View Post
Since that counts the retransmissions, I would start looking at the variable(s) for the retransmissions, and then subtract that from the "virtual" transmitted bytes, and that would give you the offset, thus telling you what was actually transmitted, and what was not. I'm not currently looking at the source code, but it pretty much goes along what I said; You also might need to monitor the raw packet count for bits/bytes being sent from your device too, just to verify they are being sent.
Yes, you got the point. The problem, unfortunately, is right there: source code. I'm not very familiar with it, and Madwifi code is very difficult (at least for me) and so I was looking for someone with great experience, or someone who did something similar to what is my actual task. Anyway, thanks for your comment, I appreciated it.

Regards.
 
Old 11-24-2011, 03:18 AM   #4
TotallyNew2011
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Madwifi (tx_bytes)

Quote:
Originally Posted by corp769 View Post
Deleted.....
Why deleted?

Is there anyone else that can help me?
 
  


Reply



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
Unable to load madwifi driver madwifi-0.9.4-38_r2512.el5 louisb Linux - Wireless Networking 3 07-21-2007 08:15 PM
Madwifi-old + Aircrack/Trouble compiling madwifi Ashex Linux - Software 7 04-05-2006 11:39 PM
Madwifi-old + Aircrack/Trouble compiling madwifi Ashex Linux - Software 0 03-05-2006 06:55 PM
Can someone email me "madwifi-2.6.8_and_-mm-040821.patch.bz2"? (madwifi 2.6.8 patch) 95se Linux - Wireless Networking 0 09-01-2004 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 AM.

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
Open Source Consulting | Domain Registration