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 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Inheritance
System.Object
IPv4Header
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: SIPSorcery.dll
Constructors
|
Improve this Doc
View Source
Declaration
public IPv4Header(ProtocolType protocol, int id, IPAddress sourceAddress, IPAddress dstAddress)
Parameters
Type |
Name |
Description |
System.Net.Sockets.ProtocolType |
protocol |
|
System.Int32 |
id |
|
System.Net.IPAddress |
sourceAddress |
|
System.Net.IPAddress |
dstAddress |
|
Fields
|
Improve this Doc
View Source
Declaration
public IPAddress DestinationAddress
Field Value
Type |
Description |
System.Net.IPAddress |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public int FragmentOffset
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public const int IP_VERSION = 4
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public const int MIN_HEADER_LEN = 5
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public ProtocolType Protocol
Field Value
Type |
Description |
System.Net.Sockets.ProtocolType |
|
|
Improve this Doc
View Source
Declaration
public IPAddress SourceAddress
Field Value
Type |
Description |
System.Net.IPAddress |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Declaration
Returns
Type |
Description |
System.Byte[] |
|
|
Improve this Doc
View Source
Declaration
public ushort GetChecksum(byte[] buffer)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
Returns
Type |
Description |
System.UInt16 |
|
Extension Methods