SharpPcap vs. Packet.Net (SharpPcap和Packet.NET)

原文地址链接:

http://sourceforge.net/apps/mediawiki/sharppcap/index.php?title=Main_Page

SharpPcap and Packet.Net are related. Packet parsing was originally a part of SharpPcap but was split out into Packet.Net in SharpPcap 3.0. Here is a helpful comparison created by Evan Plaice:

SharpPcap和Packet.Net是相关联的。

SharpPcap

  • is a libpcap/winpcap wrapper
  • 是libpcap或者winpacp的封装。
  • implements filtering in a hardware interface level
  • 实现了硬件接口级的过滤。
  • PS:即为在网络适配器级别的过滤。
  • captures packets from a network
  • 从网络中捕获数据包。
  • captures data in its raw format
  • 捕获原生格式的数据。
  • PS:即为网络上发送的二进制流数据包。
  • (capturing) the entry point is from the selected network interface
  • 捕获时,入口为选中网络适配器。
  • (capturing) the exit point is passing a byte[] and/or statistics info on a capture
  • 捕获时,出口为字节流或者附加捕获信息
  • PS:选择一个网卡,获取该网卡的数据量。
  • (transmission) the entry point is receiving a byte[] for transmission
  • (transmission) the exit point is, the data is sent across the NIC

Packet.Net

  • is a networking packet parser
  • 网络包的转换器
  • is capable of retrieving the header/payload of any layer in the networking stack (at least below the application layer)
  • transforms a raw byte[] of data into a usable structure through calculated carefully calculated offsets and lazy-loading (for efficiency)
  • supports the ability to create a networking packet structure (using the same lazy-loading as parsing) that can be transformed into a raw byte[] for transmission
  • (parsing) the entry point is a byte[] being passed in for processing
  • (parsing) the exit point is the detailed data being outputted to the user
  • (packet creation) the entry point is a networking packet structure
  • (packet creation) the exit point is a raw byte[] being passed along to be transmitted

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值