Click or drag to resize
IpPacket Class
Represents an IPv4 packet.
Inheritance Hierarchy
SystemObject
  Network.Sim.Network.IpIpPacket

Namespace: Network.Sim.Network.Ip
Assembly: Network.Sim (in Network.Sim.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class IpPacket : Serializable

The IpPacket type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyChecksum
The checksum of the header of this IP packet.
Public propertyData
The data section of the IP packet.
Public propertyDestination
The IPv4 address of the receiver of the packet.
Public propertyDscp
The Differentiated Services Code Point (not implemented).
Public propertyFlags
The flags for controlling and identifying fragments set on this packet.
Public propertyFragmentOffset
The fragment offset of the packet.
Public propertyIdentification
The idenfication used for uniquely identifying fragments of a fragmented IP packet.
Public propertyIhl
The Internet Header Length, which is the number of 32-bit words in the header.
Public propertyOptions
Optional header fields.
Public propertyProtocol
Indicates which transport protocol is encapsulated in the data section.
Public propertySource
The IPv4 address of the sender of the packet.
Public propertyTimeToLive
The hop count of the packet.
Public propertyTotalLength
The total length of the packet, including header and data, in bytes.
Public propertyVersion
The version of the IP packet.
Top
Methods
  NameDescription
Public methodStatic memberComputeChecksum
Computes the 16-bit checksum of the specified IPv4 packet.
Public methodStatic memberDeserialize
Deserializes an IpPacket instance from the specified sequence of bytes.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSerialize
Serializes this instance of the IpPacket class into a sequence of bytes.
Public methodToString
Returns a textual description of the IpPacket instance.
(Overrides ObjectToString.)
Top
See Also