Solved

system programming

Posted on 2003-11-14
7
266 Views
Last Modified: 2010-04-17
 Would I get the logic to develop a sample C programm which is able to read traffic of an ethernet network card
0
Comment
Question by:chandra_bose
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 43 total points
ID: 9753064
For *nix boxes, IPTRAF, one of many such, provides source:
http://cebu.mozcom.com/riker/iptraf/

For Windows boxes, WINPCAP is the choice (source and examples):
http://winpcap.polito.it/

Note that COMPLETE traffic monitoring requires placing the NIC in promiscuous mode and that some NICs can be permanently configured to not permit promiscuous mode.

Note further that both of these are monitors only and neither permits stream modifications nor intimates how stream modification can be done.

0
 
LVL 1

Assisted Solution

by:amorrow5
amorrow5 earned 41 total points
ID: 9756113
The best public current code base for accessing ethernet cards (and interpreting the packets) is Ethereal

http://www.ethereal.com/
0
 
LVL 9

Assisted Solution

by:bhagyesht
bhagyesht earned 41 total points
ID: 9761561
if you just want to know the bytes in out use
cmd.exe /c netstat -e >c:\abc.txt
and read the output.
0
 
LVL 22

Expert Comment

by:cookre
ID: 9889079
Did you get what you need?
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Advice in Xamarin 21 118
Selenium and Interactive Data Language 3 73
asp Google Map 2 87
Extract data from output with RegEx 1 37
This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question