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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章