How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLPROG Your Own Question

ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

You have already helped someone it looks like with this

Customer Question

I have a C programming question. Could you please add the lines of programming needed near the bottom of the file? I need to decode the ethernet header and print the header in a readable format, print the addresses in hex with ":" between each byte (e.g. DA = 00:16:22:F3:33:45, SA = 00:FF:34:78:CD:22) and print the type/length field as Type = (hex value) or Len = (in decimal). Also:
*need to print IP (0x80) the print Payload = IP or if type field indicates payload is ARP (0x806) then print Payload = ARP)
*add a set of counters to count the # ***** broadcast packets /# ***** IP Packets / # ***** ARP PAckets
then add code to print the values of these counter to the subroutine program_ending(). Note the subroutine already prints the total of packets
Thanks!

The code is downloadable from ftp:www.dougj.net under pub, the file netdump.tar. You will need to extract the files into a directory and type "make" to create the program netdump. To run the program, you will use "run_dump. Thanks!

You have already helped someone it looks like with this issue, the following URL was used: http://wikisend.com/download/731944/netdump.c. If you could allow me access to that it would be much appreciated.

Submitted: 1 year ago.
Category: Programming