计算机应用 ›› 2005, Vol. 25 ›› Issue (05): 1185-1186.DOI: 10.3724/SP.J.1087.2005.1185

• 网络技术及网格计算 • 上一篇    下一篇

面向数据链路层的网络嗅探器的开发与实现

张楠1,2,李志蜀1,张建华1,2,李奇3   

  1. 1.四川大学计算机学院; 2.四川师范大学计算机软件实验室; 3.西南民族大学计算机科学与技术学院
  • 出版日期:2005-05-01 发布日期:2005-05-25

Development and implementation of network sniffer based on data link layer

ZHANG Nan1,2, LI Zhi-shu1, ZHANG Jian-hua1,2, LI Qi3   

  1. 1. School of Computer Science and Engineering, Sichuan University, Chengdu Sichuan 610065, China; 2. School of Computer Science and Engineering, Southwest University for Nationalities, Chengdu Sichuan 610041, China; 3. Computer Software Lab, Sichuan Normal University, Chengdu Sichuan 610068, China
  • Online:2005-05-01 Published:2005-05-25

摘要: 给出了一种在数据链路层上开发网络嗅探器的方法。该方法实现的嗅探器能够直接通过网卡驱动程序捕获网络上的数据帧,适用于各种类型数据包的捕获,比在协议栈的网络层捕获数据包具有更强大的功能。

关键词: 网络嗅探器, 数据链路层, 套接字, 以太帧

Abstract: A method to develop network sniffer based on data link layer was put forward. The sniffer implemented by this method can capture data frame on network by driver of network card. It can be used to capture all kinds of data packets. Compared with those sniffers which capture data packet based on network layer, it is more powerful.

Key words: network sniffer, data link layer, socket, ethernet frame

中图分类号: