呵呵,受人所拖,时间很紧,来不及现学现卖了
:)原要求如下:
Write a program that can decode the ICMP message formats covered in Comer’s Chapter 9. 
The input to your program should be an ICMP message, and your output should decode the message 
in a form that we can read easily. For example, 
8. 
“Message Type: 
Code: 
… 
Internet Header: … 
First 64-bits of datagram: … “ 
You don’t need to implement checksum. 
Include all your test cases for your program. 
大概就是能收到ICMP数据,然后分析一下,想上面那样
拜托了