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 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Afficher le fichier Open project: sipsorcery/sipsorcery Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

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

Method Details

GetBytes() public méthode

public GetBytes ( ) : byte[]
Résultat byte[]

GetChecksum() public méthode

public GetChecksum ( byte buffer ) : UInt16
buffer byte
Résultat System.UInt16

IPv4Header() public méthode

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

Property Details

DF public_oe property

public int DF
Résultat int

DestinationAddress public_oe property

public IPAddress,System.Net DestinationAddress
Résultat System.Net.IPAddress

FragmentOffset public_oe property

public int FragmentOffset
Résultat int

HeaderLength public_oe property

public int HeaderLength
Résultat int

Id public_oe property

public int Id
Résultat int

Length public_oe property

public int Length
Résultat int

MF public_oe property

public int MF
Résultat int

Protocol public_oe property

public ProtocolType Protocol
Résultat ProtocolType

SourceAddress public_oe property

public IPAddress,System.Net SourceAddress
Résultat System.Net.IPAddress

TTL public_oe property

public int TTL
Résultat int

TypeOfService public_oe property

public int TypeOfService
Résultat int

Version public_oe property

public int Version
Résultat int