Question: Update the _ _ validateIcmpReplyPacketWithOriginalPingData ( ) function: Confirm the following items received are the same as what was sent: sequence number packet identifier raw
Update the validateIcmpReplyPacketWithOriginalPingData function:
Confirm the following items received are the same as what was sent:
sequence number packet identifier raw data
Set the valid data variable in the IcmpPacketEchoReply class based on the outcome of the data comparison. Create variables within the IcmpPacketEchoReply class that identify whether each value that can be obtained from the class is valid. For example, the IcmpPacketEchoReply class has an IcmpIdentifier. Create a variable, such as IcmpIdentifierisValid, along with a getter function, such as getIcmpIdentifierisValid and a setting function, such as setIcmpIdentifierisValid so you can easily track and identify which data points within the echo reply are valid. Note: There are similar examples within the current skeleton code. Create debug messages that show the expected and the actual values along with the comparison result.
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
