system programming

 Would I get the logic to develop a sample C programm which is able to read traffic of an ethernet network card
Who is Participating?
cookreConnect With a Mentor Commented:
For *nix boxes, IPTRAF, one of many such, provides source:

For Windows boxes, WINPCAP is the choice (source and examples):

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.

amorrow5Connect With a Mentor Commented:
The best public current code base for accessing ethernet cards (and interpreting the packets) is Ethereal
bhagyeshtConnect With a Mentor Commented:
if you just want to know the bytes in out use
cmd.exe /c netstat -e >c:\abc.txt
and read the output.
Did you get what you need?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.