TInet6HeaderHBH Class Reference

class TInet6HeaderHBH
IPv6 Hop-by-hop options header.
	From RFC 2460

    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |  Next Header  |  Hdr Ext Len  |                               |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
    |                                                               |
    .                                                               .
    .                            Options                            .
    .                                                               .
    |                                                               |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

   Next Header          8-bit selector.  Identifies the type of header
                        immediately following the Hop-by-Hop Options
                        header.  Uses the same values as the IPv4
                        Protocol field [RFC-1700 et seq.].

   Hdr Ext Len          8-bit unsigned integer.  Length of the Hop-by-
                        Hop Options header in 8-octet units, not
                        including the first 8 octets.

   Options              Variable-length field, of length such that the
                        complete Hop-by-Hop Options header is an integer
                        multiple of 8 octets long.  Contains one or more
                        TLV-encoded options, as described in section
                        4.2.

  And Options is:

	  +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - -
      |  Option Type  |  Opt Data Len |  Option Data
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- - - - - - - - -

      Option Type          8-bit identifier of the type of option.

      Opt Data Len         8-bit unsigned integer.  Length of the Option
                           Data field of this option, in octets.

      Option Data          Variable-length field.  Option-Type-specific
                           data.
Public Member Functions
TUint8 *EndPtr()
TInt HeaderLength()
TInt MaxHeaderLength()
TInt MinHeaderLength()
TInt NextHeader()
TInt OptionDataLen()
TInt OptionType()
voidSetHdrExtLen(TInt)
voidSetNextHeader(TInt)
voidSetOptionDataLen(TInt)
voidSetOptionType(TInt)
Public Attributes
TUint8 i
TUint32 iAlign
Private Attributes
union TInet6HeaderHBH::@40@41

Member Functions Documentation

EndPtr()

TUint8 *EndPtr()[inline]

HeaderLength()

TInt HeaderLength()const [inline]

MaxHeaderLength()

TInt MaxHeaderLength()[static, inline]

MinHeaderLength()

TInt MinHeaderLength()[static, inline]

NextHeader()

TInt NextHeader()const [inline]

OptionDataLen()

TInt OptionDataLen()const [inline]

OptionType()

TInt OptionType()const [inline]

SetHdrExtLen(TInt)

voidSetHdrExtLen(TIntaLength)[inline]

Parameters

TInt aLength

SetNextHeader(TInt)

voidSetNextHeader(TIntaNext)[inline]

Parameters

TInt aNext

SetOptionDataLen(TInt)

voidSetOptionDataLen(TIntaLength)[inline]

Sets data length of the first option.

Parameters

TInt aLength

SetOptionType(TInt)

voidSetOptionType(TIntaType)[inline]

Sets type of the first option.

Parameters

TInt aType

Member Data Documentation

union TInet6HeaderHBH::@40 @41

union TInet6HeaderHBH::@40@41[private]

TUint8 i

TUint8 i

TUint32 iAlign

TUint32 iAlign