Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > System > Networking

    Packet.Net 0.4.0

    Download button

    No screenshots available
    Downloads: 329  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

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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