How can capture packets from a LAN using C/C++ & do the following operations:
ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
How can capture packets from a LAN using C/C++ & do the following operations:
Hi all,
I need a C/C++ program by which I can show the following parameters:
1. How much traffic is transferred within a LAN.
2. What types of traffic is transferred within a LAN.
3. How much traffic is generated within a LAN and from which system.
4. How much traffic and which system or application is causing bottleneck.
5. How high is peak traffic and when does it peak.
N.B.: Operating System-- Mandriva or Mandrak
If anybody have any information please inform me.Please post the mail by email "mostafijur_embedded@yahoo.com".
sounds a lot like homework which we aren't here to do, and also we aren't just going to give you entire programs to do this, really doesn't make sense. i'll say you might want to look at libpcap to get started though.
and don't ask for private email repsonses, that's just rude.
libpcap is probably what you want as a diagnostics oriented tool. For long term trend and volume monitoring, iptables can provide quite a few statistics. Why does the language implementation matter?
--- rod.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.