xorp

IpHeader6Writer Class Reference

Class for writing data to IPv6 packet header. More...

#include <packet.hh>

Inheritance diagram for IpHeader6Writer:
IpHeader6

List of all members.

Public Member Functions

 IpHeader6Writer (uint8_t *data)
uint8_t * data ()
 Get the buffer data.
void set_ip_vtc_flow (uint32_t v)
 Methods to set various IP header fields.
void set_ip_plen (uint16_t v)
void set_ip_nxt (uint8_t v)
void set_ip_hlim (uint8_t v)
void set_ip_src (const IPv6 &v)
void set_ip_dst (const IPv6 &v)
void set_ip_version (uint8_t v)
 Set the IP protocol version of the header.
void set_ip_traffic_class (uint8_t v)
 Set the IPv6 traffic class.
void set_ip_flow_label (uint32_t v)
 Set the IPv6 flow label.

Private Attributes

uint8_t * _data
uint8_t * _ip_vtc_flow
uint8_t * _ip_plen
uint8_t * _ip_nxt
uint8_t * _ip_hlim
uint8_t * _ip_src
uint8_t * _ip_dst

Detailed Description

Class for writing data to IPv6 packet header.


Member Function Documentation

uint8_t* IpHeader6Writer::data ( ) [inline]

Get the buffer data.

Returns:
the buffer data.
void IpHeader6Writer::set_ip_flow_label ( uint32_t  v) [inline]

Set the IPv6 flow label.

Parameters:
vthe IPv6 flow label.
void IpHeader6Writer::set_ip_traffic_class ( uint8_t  v) [inline]

Set the IPv6 traffic class.

Parameters:
vthe IPv6 traffic class.
void IpHeader6Writer::set_ip_version ( uint8_t  v) [inline]

Set the IP protocol version of the header.

Parameters:
vthe IP protocol version of the header.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations