C# (CSharp) SharpPcap.Packets Namespace

Nested Namespaces

SharpPcap.Packets.Util

Classes

Name Description
ARPFields_Fields IP protocol field encoding information.
EthernetPacket
EthernetPacket.EtherType Code constants for well-defined ethernet protocols.

Taken from linux/if_ether.h and tcpdump/ethertype.h

ICMPMessage ICMP message utility class.
IPPort IP port utility class.
IPPorts Code constants for ip ports.
IPProtocol IPProtocol utility class.
IPv4Packet
IPv4Packet.TestProbe This inner class provides access to private methods for unit testing.
IPv4Packet.TypesOfService_Fields Type of service code constants for IP. Type of service describes how a packet should be handled.

TOS is an 8-bit record in an IP header which contains a 3-bit precendence field, 4 TOS bit fields and a 0 bit.

The following constants are bit masks which can be logically and'ed with the 8-bit IP TOS field to determine what type of service is set.

Taken from TCP/IP Illustrated V1 by Richard Stevens, p34.

Packet
PacketFactory This factory constructs high-level packet objects from captured data streams.