class IpHeader6

IPv6 packet header. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Static Methods

Public Members

Protected Members


Detailed Description

The IPv6 packet header has the following content:

ip_vtc_flow (4 bytes): // 4 bits vers., 8 bits traf. class, 20 bits flow-ID ip_plen (2 bytes): // Payload length ip_nxt (1 byte): // Next header ip_hlim (1 byte): // Hop limit ip_src (16 bytes): // Source address ip_dst (16 bytes): // Destination address

 IpHeader6 (const uint8_t* data)

IpHeader6

static const size_t SIZE

SIZE

static const uint8_t IP_VERSION

IP_VERSION

size_t  size ()

size

[static]

Get the IPv6 packet header size.

Note that this is the header size only without any extention headers.

Returns: the IPv6 packet header size.

const uint8_t*  data ()

data

[const]

Get the buffer data.

Returns: the buffer data.

uint32_t  ip_vtc_flow ()

ip_vtc_flow

[const]

Methods to get various IP header fields.

uint16_t  ip_plen ()

ip_plen

[const]

uint8_t  ip_nxt ()

ip_nxt

[const]

uint8_t  ip_hlim ()

ip_hlim

[const]

IPv6  ip_src ()

ip_src

[const]

IPv6  ip_dst ()

ip_dst

[const]

uint8_t  ip_version ()

ip_version

[const]

Get the IP protocol version of the header.

Returns: the IP protocol version of the header.

uint8_t  ip_traffic_class ()

ip_traffic_class

[const]

Get the IPv6 traffic class.

Returns: the IPv6 traffic class.

uint32_t  ip_flow_label ()

ip_flow_label

[const]

Get the IPv6 flow label.

Returns: the IPv6 flow label.

bool  is_valid_version ()

is_valid_version

[const]

Test whether the IP header version is valid.

Returns: true if the IP header version is valid, otherwise false.

static const uint32_t VERSION_MASK

VERSION_MASK

[protected]

static const uint32_t TRAFFIC_CLASS_MASK

TRAFFIC_CLASS_MASK

[protected]

static const uint32_t FLOW_LABEL_MASK

FLOW_LABEL_MASK

[protected]

static const size_t VERSION_SHIFT

VERSION_SHIFT

[protected]

static const size_t TRAFFIC_CLASS_SHIFT

TRAFFIC_CLASS_SHIFT

[protected]

static const size_t FLOW_LABEL_SHIFT

FLOW_LABEL_SHIFT

[protected]

static const size_t _ip_vtc_flow_sizeof

_ip_vtc_flow_sizeof

[protected]

static const size_t _ip_plen_sizeof

_ip_plen_sizeof

[protected]

static const size_t _ip_nxt_sizeof

_ip_nxt_sizeof

[protected]

static const size_t _ip_hlim_sizeof

_ip_hlim_sizeof

[protected]

static const size_t _ip_src_sizeof

_ip_src_sizeof

[protected]

static const size_t _ip_dst_sizeof

_ip_dst_sizeof

[protected]

static const size_t _ip_vtc_flow_offset

_ip_vtc_flow_offset

[protected]

static const size_t _ip_plen_offset

_ip_plen_offset

[protected]

static const size_t _ip_nxt_offset

_ip_nxt_offset

[protected]

static const size_t _ip_hlim_offset

_ip_hlim_offset

[protected]

static const size_t _ip_src_offset

_ip_src_offset

[protected]

static const size_t _ip_dst_offset

_ip_dst_offset

[protected]


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:10:46 2009, using kdoc 2.0a54+XORP.