Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > System > Networking

    Packet.Net 0.4.0

    Download button

    No screenshots available
    Downloads: 283  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Morgan | More programs
    LGPL / FREE
    April 12th, 2010, 12:50 GMT
    ROOT / System / Networking

     Read user reviews (0)  Refer to a friend  Subscribe

    Packet.Net description

    High performance .NET assembly for dissecting and constructing network packets such as Ethernet, IP, TCP, UDP, etc.

    Packet.Net is a high performance .NET assembly for constructing and dissecting network packets such as Ethernet, IP, UDP, TCP, etc.

    Packet.Net started as a rewrite of the packet parser in SharpPcap with the goal of making a more consistent and better documented API.

    Usage:

    The source code package, available via the Downloads link on the project page, contains an Examples/ directory. Below are some snippets that illustrate usage but are not intended to be complete.

    Packet.Net can be used to create packets from scratch:

    using PacketDotNet;

    int sourcePort = 10;
    int destinationPort = 20;
    TcpPacket tcpPacket = new TcpPacket(sourcePort, destinationPort);



    Many people will use Packet.Net in conjunction with existing data, either captured from the network via SharpPcap or Pcap.Net to decode packets:

    using PacketDotNet;

    // open the capture file
    SharpPcap.LivePcapDevice dev = new SharpPcap.LivePcapDevice("SomeCapturedPackets.pcap");

    // read a raw packet
    rawPacket = dev.GetNextRawPacket();

    // parse the packet
    Packet p = Packet.ParsePacket((LinkLayers)rawPacket.LinkLayerType,
     new PosixTimeval(rawPacket.Timeval.Seconds,
     rawPacket.Timeval.MicroSeconds),
     rawPacket.Data);

    // print out the packet contents
    Console.WriteLine(p);


    This program would produce output like:

     [EthernetPacket: 00234D5BF88B -> 00183F7775D1 proto=IpV4 (0x800) l=14][IPv4Packet: 192.168.1.76 -> 72.14.204.83 HeaderLength=5 Protocol=TCP TimeToLive=64][TCPPacket: SourcePort: 59038 -> DestinationPort: 443 ack[218134930 (0xd007992)]]


    Product's homepage

    Requirements:

    · Mono Project

      


    TAGS:

    .NET assembly | dissecting network packets | constructing network packets | .NET | assembly | network



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM