急求一小程序源码,分析收到的ICMP包

侠雨飞飞 2003-11-27 07:20:26
呵呵,受人所拖,时间很紧,来不及现学现卖了
:)

原要求如下:
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数据,然后分析一下,想上面那样
拜托了

...全文
66 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
antpower 2003-11-28
  • 打赏
  • 举报
回复
sniffer就是用raw socket做的!!!!
侠雨飞飞 2003-11-28
  • 打赏
  • 举报
回复
我不要那么复杂的,只要一个小程序的源码

利用Row socket 来接受并分析
:)
antpower 2003-11-28
  • 打赏
  • 举报
回复
论坛里搜一下, “抓包”
是一个sniffer的东西!
侠雨飞飞 2003-11-27
  • 打赏
  • 举报
回复
HELP~~

18,355

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧