IsValid() const
Indicates whether or not the header appears to be well-formed.
InitVersionIhl()
Initializes the Version to 4 and sets Traffic Class and Flow fields to zero. The other fields in the IPv4 header remain unchanged.
SetVersionIhl()
Sets the version and Ihl of the IPv4 header.
IsVersion4() const
Indicates whether or not the IPv4 Version is set to 6.
GetDscpEcn() const
Returns the octet for DSCP + ECN.
GetDscp() const
Gets the 6-bit Differentiated Services Code Point (DSCP) from Traffic Class field.
SetDscp()
Sets 6-bit Differentiated Services Code Point (DSCP) in IPv4 header.
GetEcn() const
Gets the 2-bit Explicit Congestion Notification (ECN) from Traffic Class field.
SetEcn()
Sets the 2-bit Explicit Congestion Notification (ECN) in IPv4 header..
GetTotalLength() const
Returns the IPv4 Payload Length value.
SetTotalLength()
Sets the IPv4 Payload Length value.
GetProtocol() const
Returns the IPv4 payload protocol.
SetProtocol()
Sets the IPv4 payload protocol.
GetChecksum() const
Returns the IPv4 header checksum, the checksum is in host endian.
SetChecksum()
Sets the IPv4 header checksum, the checksum is in host endian.
GetIdentification() const
Returns the IPv4 Identification value.
SetIdentification()
Sets the IPv4 Identification value.
GetTtl() const
Returns the IPv4 Time-to-Live value.
SetTtl()
Sets the IPv4 Time-to-Live value.
GetSource()
Returns the IPv4 Source address.
GetSource() const
Returns the IPv4 Source address.
SetSource()
Sets the IPv4 Source address.
GetDestination()
Returns the IPv4 Destination address.
GetDestination() const
Returns the IPv4 Destination address.
SetDestination()
Sets the IPv4 Destination address.
ParseFrom()
Parses and validates the IPv4 header from a given message. The header is read from @p aMessage at offset zero.
GetDf() const
Returns the Df flag in the IPv4 header.
GetMf() const
Returns the Mf flag in the IPv4 header.
GetFragmentOffset() const
Returns the fragment offset in the IPv4 header.