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 Scott Your Own Question
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
Type Your Homework Question Here...
Scott is online now
A new question is answered every 9 seconds

C Programming Question

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

The code is downloadable from 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!

Submitted: 2 years ago.
Category: Homework

Related Homework Questions