C# Class Tx.Network.IpPacketHeader

Data model class that describes the header of IP packets.
Datei anzeigen Open project: Reactive-Extensions/Tx

Public Properties

Property Type Description
DestinationIpAddress System.Net.IPAddress
DscpValue byte
ExplicitCongestionNotice byte
FragmentGroupId ushort
FragmentOffset ushort
InternetHeaderLength byte
IpHeaderFlags byte
IpPacketLength ushort
IsIp6 bool
PacketHeaderChecksum ushort
SourceIpAddress System.Net.IPAddress
TimeToLive byte

Public Methods

Method Description
IpPacketHeader ( IPAddress sourceIpAddress, IPAddress destinationIpAddress, bool isIp6, byte internetHeaderLength, byte dscpValue, byte explicitCongestionNotice, ushort ipPacketLength, ushort fragmentGroupId, byte ipHeaderFlags, ushort fragmentOffset, byte timeToLive, ushort packetHeaderChecksum ) : System.Net

Initializes a new instance of the IpPacketHeader class.

Method Details

IpPacketHeader() public method

Initializes a new instance of the IpPacketHeader class.
public IpPacketHeader ( IPAddress sourceIpAddress, IPAddress destinationIpAddress, bool isIp6, byte internetHeaderLength, byte dscpValue, byte explicitCongestionNotice, ushort ipPacketLength, ushort fragmentGroupId, byte ipHeaderFlags, ushort fragmentOffset, byte timeToLive, ushort packetHeaderChecksum ) : System.Net
sourceIpAddress System.Net.IPAddress Source IP Address, not assumed to be on the local host..
destinationIpAddress System.Net.IPAddress Destination IP Address.
isIp6 bool if set to true IP version is 6 otherwise 4.
internetHeaderLength byte Length of the internet header.
dscpValue byte DSCP value to encode.
explicitCongestionNotice byte ECN value to encode.
ipPacketLength ushort Length of the complete packet.
fragmentGroupId ushort Fragement identifier, could be 0..
ipHeaderFlags byte The IP header flags.
fragmentOffset ushort The fragment offset, could be 0.
timeToLive byte Internet TTL.
packetHeaderChecksum ushort The packet header checksum.
return System.Net

Property Details

DestinationIpAddress public_oe property

Destination IP Address.
public IPAddress,System.Net DestinationIpAddress
return System.Net.IPAddress

DscpValue public_oe property

DSCP value to encode.
public byte DscpValue
return byte

ExplicitCongestionNotice public_oe property

ECN value to encode.
public byte ExplicitCongestionNotice
return byte

FragmentGroupId public_oe property

Fragement identifier, could be 0.
public ushort FragmentGroupId
return ushort

FragmentOffset public_oe property

The fragment offset, could be 0.
public ushort FragmentOffset
return ushort

InternetHeaderLength public_oe property

The internet header length
public byte InternetHeaderLength
return byte

IpHeaderFlags public_oe property

The IP header flags.
public byte IpHeaderFlags
return byte

IpPacketLength public_oe property

Length of the complete packet.
public ushort IpPacketLength
return ushort

IsIp6 public_oe property

The is ip6
public bool IsIp6
return bool

PacketHeaderChecksum public_oe property

The packet header checksum.
public ushort PacketHeaderChecksum
return ushort

SourceIpAddress public_oe property

Source IP Address, not assumed to be on the local host.
public IPAddress,System.Net SourceIpAddress
return System.Net.IPAddress

TimeToLive public_oe property

Internet TTL.
public byte TimeToLive
return byte