?
Solved

system programming

Posted on 2003-11-14
7
Medium Priority
?
282 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
4 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 172 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 164 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 164 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
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…
Loops Section Overview

749 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