首页 | 本学科首页   官方微博 | 高级检索  
     

BSD包过滤器(BPF)的研究与改进
引用本文:王汉江,朱淼良,郭晔.BSD包过滤器(BPF)的研究与改进[J].计算机工程与应用,2004,40(35):106-108,115.
作者姓名:王汉江  朱淼良  郭晔
作者单位:浙江大学计算机学院,杭州,310027
摘    要:BSD包过滤器(BSDPacketFilter,简称BPF)位于BSDUnix的内核中,它独立于TCP/IP协议栈,为应用程序访问数据链路层提供了一个原始接口,被广泛地运用在网络监控及其它软件中,如tcpdump。论文对BPF进行了研究,并对其在以太网卡被设置成混杂模式时存在的问题,在FreeBSD4.7上进行了改进,从而也使BPF为应用程序提供了一个更友好的接口。

关 键 词:BPF  过滤器虚拟机  BPF编程  数据链路层访问  以太网卡混杂模式
文章编号:1002-8331-(2004)35-0106-03

Research and Improvement of BSD Packet Filter(BPF)
Wang Hanjiang Zhu Miaoliang Guo Ye.Research and Improvement of BSD Packet Filter(BPF)[J].Computer Engineering and Applications,2004,40(35):106-108,115.
Authors:Wang Hanjiang Zhu Miaoliang Guo Ye
Abstract:BSD Packet Filter(BPF)lies in the kernel of BSD Unix,it is independent of the TCP/IP stack,and gives user mode processes a raw interface to access data link layer.It has been widely used in network monitors and other softwares,such as tcpdump.This paper includes a research of BPF,and a solution of a BPF's problem which exists when the Ethernet card is set into promiscuous mode,and the solution has been implemented on FreeBSD4.7.As a result,it also makes BPF provide a better interface to application program.
Keywords:BPF  filter pseudo-machine  BPF programming  access of data link layer  promiscuous mode of Ethernet card  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号