Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.