阅读:1285回复:3
关于从Ethernet NIC上抓包时的问题...
有没有什么参数,设置过滤条件,使N 网卡只抓 收取的packet,而不抓自己发送的packet呢??
|
|
|
沙发#
发布于:2003-05-12 17:51
首先得到自己的IP,分析IP头过滤本地IP的包。
|
|
板凳#
发布于:2003-05-12 22:50
首先得到自己的IP,分析IP头过滤本地IP的包。 呵呵,谢谢你的回复,不过,或许是我的问题没有写明白.我想要的不是这种答案. 我想知道的是 通过设置类似 NDIS_PACKET_TYPE_ALL_FUNCTIONAL All functional address packets, not just the ones in the current functional address. NDIS_PACKET_TYPE_ALL_MULTICAST All multicast address packets, not just the ones enumerated in the multicast address list. NDIS_PACKET_TYPE_ALL_LOCAL All packets sent by installed protocols and all packets indicated by the NIC that is identified by a given NdisBindingHandle. NDIS_PACKET_TYPE_BROADCAST Broadcast packets. NDIS_PACKET_TYPE_DIRECTED 这样的过滤条件来实现.. |
|
|
地板#
发布于:2003-05-13 08:58
你说的那几个参数或者宏不是系统定义的吧?
|
|