文件名称:sniffer
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.27kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
使用Libpcap库捕获局域网中的IP包,要求:
打印数据包的源与目的物理地址;
打印源IP与目的IP地址;
打印出上层协议类型;
如果上层协议为TCP或UDP协议,打印目的与源端口信息;
如果上层协议为TCP或UDP协议,将数据以16进制与ASCII的两种方式同时打印出来,不可打印字符以‘.’代替;
-Libpcap library using the LAN IP packet capture, asked: Print packet source and destination physical addresses print the source IP address of IP and purpose print out the upper layer protocol type If the upper layer protocol is TCP or UDP protocol, source port printing purposes information If the upper layer protocol is TCP or UDP protocol, the 16 hex and ASCII data to the two ways to print out the same time, non-printable characters with ' .' instead
打印数据包的源与目的物理地址;
打印源IP与目的IP地址;
打印出上层协议类型;
如果上层协议为TCP或UDP协议,打印目的与源端口信息;
如果上层协议为TCP或UDP协议,将数据以16进制与ASCII的两种方式同时打印出来,不可打印字符以‘.’代替;
-Libpcap library using the LAN IP packet capture, asked: Print packet source and destination physical addresses print the source IP address of IP and purpose print out the upper layer protocol type If the upper layer protocol is TCP or UDP protocol, source port printing purposes information If the upper layer protocol is TCP or UDP protocol, the 16 hex and ASCII data to the two ways to print out the same time, non-printable characters with ' .' instead
(系统自动生成,下载前可以参看下载内容)
下载文件列表
sniffer.c
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.