| IpPacket Class |
Namespace: Network.Sim.Network.Ip
public class IpPacket : Serializable
The IpPacket type exposes the following members.
| Name | Description | |
|---|---|---|
| IpPacket(IpAddress, IpAddress, IpProtocol, Byte) |
Initializes a new instance of the IpPacket class using the specified
values.
| |
| IpPacket(IpAddress, IpAddress, IpProtocol, Byte, Byte, Byte, UInt16, IpFlag, UInt16, Byte) |
Initializes a new instance of the IpPacket class using the specified
values.
|
| Name | Description | |
|---|---|---|
| Checksum |
The checksum of the header of this IP packet.
| |
| Data |
The data section of the IP packet.
| |
| Destination |
The IPv4 address of the receiver of the packet.
| |
| Dscp |
The Differentiated Services Code Point (not implemented).
| |
| Flags |
The flags for controlling and identifying fragments set on this packet.
| |
| FragmentOffset |
The fragment offset of the packet.
| |
| Identification |
The idenfication used for uniquely identifying fragments of a fragmented
IP packet.
| |
| Ihl |
The Internet Header Length, which is the number of 32-bit words
in the header.
| |
| Options |
Optional header fields.
| |
| Protocol |
Indicates which transport protocol is encapsulated in the data section.
| |
| Source |
The IPv4 address of the sender of the packet.
| |
| TimeToLive |
The hop count of the packet.
| |
| TotalLength |
The total length of the packet, including header and data, in bytes.
| |
| Version |
The version of the IP packet.
|
| Name | Description | |
|---|---|---|
| ComputeChecksum |
Computes the 16-bit checksum of the specified IPv4 packet.
| |
| Deserialize |
Deserializes an IpPacket instance from the specified sequence of
bytes.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Serialize |
Serializes this instance of the IpPacket class into a sequence of
bytes.
| |
| ToString |
Returns a textual description of the IpPacket instance.
(Overrides ObjectToString.) |