Solved

system programming

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
add text to end of existing text in file 16 62
copyEvens challenge 6 64
Enhanced For loop vs ForEach Loop 4 58
wordappend challenge 8 88
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is an explanation of a simple data model to help parse a JSON feed
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

743 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

15 Experts available now in Live!

Get 1:1 Help Now