Solved

system programming

Posted on 2003-11-14
7
250 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
  • 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
base64 decode encode 12 133
What is Python programming? 3 110
Programatically extract date from website 8 77
Definitions and default visual studio colors 5 65
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This is an explanation of a simple data model to help parse a JSON feed
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

815 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now