原文地址链接:
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