Question: Write a C program that will decode the Ethernet header from a packet stored in a binary file. This program needs to run in Visual
Write a C program that will decode the Ethernet header from a
packet stored in a binary file. This program needs to run in
Visual Studio
What you program should do:
Decode the destination MAC address, source MAC address,
and the type.
List the hex representation of frame's payload.
Several binary files have been supplied on Canvas. The files are
frames from the tcppcapng file. Use these files to test your
program. You may also create your own binary files from any
packet you can view in Wireshark.
Your program must match the formatting in the example output
shown below:
Ethernet header:
Destination MAC address:
Source MAC address:
Type:
e: ::::
ec: ::::
Payload:
f d
: This example does not include the entire payload; only the
first several bytes.
To turn in:
A file containing your source code named Assignment c or
Assignmentcpp
C commands you will probably need to use:
Declare a file
FILE@
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
