C# Class SIPSorcery.Sys.IPv4Header

0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Version| IHL |Type of Service| Total Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Identification |Flags| Fragment Offset | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Time to Live | Protocol | Header Checksum | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Source Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Destination Address | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Options | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Properties

Property Type Description
DF int
DestinationAddress System.Net.IPAddress
FragmentOffset int
HeaderLength int
Id int
Length int
MF int
Protocol ProtocolType
SourceAddress System.Net.IPAddress
TTL int
TypeOfService int
Version int

Public Methods

Method Description
GetBytes ( ) : byte[]
GetChecksum ( byte buffer ) : UInt16
IPv4Header ( ProtocolType protocol, int id, IPAddress sourceAddress, IPAddress dstAddress ) : NUnit.Framework

Method Details

GetBytes() public method

public GetBytes ( ) : byte[]
return byte[]

GetChecksum() public method

public GetChecksum ( byte buffer ) : UInt16
buffer byte
return System.UInt16

IPv4Header() public method

public IPv4Header ( ProtocolType protocol, int id, IPAddress sourceAddress, IPAddress dstAddress ) : NUnit.Framework
protocol ProtocolType
id int
sourceAddress System.Net.IPAddress
dstAddress System.Net.IPAddress
return NUnit.Framework

Property Details

DF public property

public int DF
return int

DestinationAddress public property

public IPAddress,System.Net DestinationAddress
return System.Net.IPAddress

FragmentOffset public property

public int FragmentOffset
return int

HeaderLength public property

public int HeaderLength
return int

Id public property

public int Id
return int

Length public property

public int Length
return int

MF public property

public int MF
return int

Protocol public property

public ProtocolType Protocol
return ProtocolType

SourceAddress public property

public IPAddress,System.Net SourceAddress
return System.Net.IPAddress

TTL public property

public int TTL
return int

TypeOfService public property

public int TypeOfService
return int

Version public property

public int Version
return int