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.
       

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)

void SetHdrExtLen ( TInt aLength ) [inline]

Parameters

TInt aLength

SetNextHeader(TInt)

void SetNextHeader ( TInt aNext ) [inline]

Parameters

TInt aNext

SetOptionDataLen(TInt)

void SetOptionDataLen ( TInt aLength ) [inline]

Sets data length of the first option.

Parameters

TInt aLength

SetOptionType(TInt)

void SetOptionType ( TInt aType ) [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